Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Description

Excerpt

The PageSetup class represents the page layout properties of a printed worksheet.

|Worksheet.PageSetup].

{remarks}
{example}{code:csharp|title=C#}

          ExcelApplication xla = new ExcelApplication();
          Workbook wb = xla.Create();
          PageSetup ps = wb.Worksheets[0].PageSetup;
        
{code}
{code:vbnet|title=vb.net
}

          Dim xla As New ExcelApplication()
          Dim wb As Workbook = xla.Create()
          Dim ps As PageSetup = wb.Worksheets(0).PageSetup
        
Signature
C#C#
Wiki Markup
{description}
{excerpt}The [PageSetup|PageSetup] class represents the page layout properties of a printed worksheet.{excerpt}
{signature:C#}
 public class PageSetup
Signature
{signature}{signature:vb.net
vb.net
}
Public Class PageSetup
Remarks
To return a PageSetup object, use
{signature}
{remarks}To return a {{PageSetup}} object, use [Worksheet.PageSetup
.
Example
Code Block
csharpcsharp
titleC#
Code Block
vbnetvbnettitle
Properties

...

Name

...

Description

...

BottomMargin

...

{code}

{example}
{properties}
||Name||Description||
|[BottomMargin|PageSetup.BottomMargin]|{excerpt-include:PageSetup.BottomMargin

...

CenterFooter

|nopanel=true}|
|[CenterFooter|PageSetup.CenterFooter]|{excerpt-include

...

:PageSetup.CenterFooter

...

CenterHeader

|nopanel=true}|
|[CenterHeader|PageSetup.CenterHeader]|{excerpt-include

...

:PageSetup.CenterHeader

...

CenterHorizontally

|nopanel=true}|
|[CenterHorizontally|PageSetup.CenterHorizontally]|{excerpt-include

...

:PageSetup.CenterHorizontally

...

CenterVertically

|nopanel=true}|
|[CenterVertically|PageSetup.CenterVertically]|{excerpt-include

...

:PageSetup.CenterVertically

...

FirstPageNumber

|nopanel=true}|
|[FirstPageNumber|PageSetup.FirstPageNumber]|{excerpt-include

...

:PageSetup.FirstPageNumber

...

FirstPageNumberAuto

|nopanel=true}|
|[FirstPageNumberAuto|PageSetup.FirstPageNumberAuto]|{excerpt-include

...

:PageSetup.FirstPageNumberAuto

...

FitToPagesTall

|nopanel=true}|
|[FitToPagesTall|PageSetup.FitToPagesTall]|{excerpt-include

...

:PageSetup.FitToPagesTall

...

FitToPagesWide

|nopanel=true}|
|[FitToPagesWide|PageSetup.FitToPagesWide]|{excerpt-include

...

:PageSetup.FitToPagesWide

...

FooterMargin

|nopanel=true}|
|[FooterMargin|PageSetup.FooterMargin]|{excerpt-include

...

:PageSetup.FooterMargin

...

HeaderMargin

|nopanel=true}|
|[HeaderMargin|PageSetup.HeaderMargin]|{excerpt-include

...

:PageSetup.HeaderMargin

...

LeftFooter

|nopanel=true}|
|[LeftFooter|PageSetup.LeftFooter]|{excerpt-include

...

:PageSetup.LeftFooter

...

LeftHeader

|nopanel=true}|
|[LeftHeader|PageSetup.LeftHeader]|{excerpt-include

...

:PageSetup.LeftHeader

...

LeftMargin

|nopanel=true}|
|[LeftMargin|PageSetup.LeftMargin]|{excerpt-include

...

:PageSetup.LeftMargin

...

Orientation

|nopanel=true}|
|[Orientation|PageSetup.Orientation]|{excerpt-include

...

:PageSetup.Orientation

...

PaperSize

|nopanel=true}|
|[PaperSize|PageSetup.PaperSize]|{excerpt-include

...

:PageSetup.PaperSize

...

PrintArea

|nopanel=true}|
|[PrintArea|PageSetup.PrintArea]|{excerpt-include

...

:PageSetup.PrintArea

...

PrintAsDraft

|nopanel=true}|
|[PrintAsDraft|PageSetup.PrintAsDraft]|{excerpt-include

...

:PageSetup.PrintAsDraft

...

PrintCellErrorsAs

|nopanel=true}|
|[PrintCellErrorsAs|PageSetup.PrintCellErrorsAs]|{excerpt-include

...

:PageSetup.PrintCellErrorsAs

...

PrintComments

|nopanel=true}|
|[PrintComments|PageSetup.PrintComments]|{excerpt-include

...

:PageSetup.PrintComments

...

PrintCommentsAtEnd

|nopanel=true}|
|[PrintCommentsAtEnd|PageSetup.PrintCommentsAtEnd]|{excerpt-include

...

:PageSetup.PrintCommentsAtEnd

...

PrintGridlines

|nopanel=true}|
|[PrintGridlines|PageSetup.PrintGridlines]|{excerpt-include

...

:PageSetup.PrintGridlines

...

PrintHeadings

|nopanel=true}|
|[PrintHeadings|PageSetup.PrintHeadings]|{excerpt-include

...

:PageSetup.PrintHeadings

...

PrintInBlackAndWhite

|nopanel=true}|
|[PrintInBlackAndWhite|PageSetup.PrintInBlackAndWhite]|{excerpt-include

...

:PageSetup.PrintInBlackAndWhite

...

PrintOrder

|nopanel=true}|
|[PrintOrder|PageSetup.PrintOrder]|{excerpt-include

...

:PageSetup.PrintOrder

...

PrintTitles

|nopanel=true}|
|[PrintTitles|PageSetup.PrintTitles]|{excerpt-include

...

:PageSetup.PrintTitles

...

RightFooter

|nopanel=true}|
|[RightFooter|PageSetup.RightFooter]|{excerpt-include

...

:PageSetup.RightFooter

...

RightHeader

|nopanel=true}|
|[RightHeader|PageSetup.RightHeader]|{excerpt-include

...

:PageSetup.RightHeader

...

RightMargin

|nopanel=true}|
|[RightMargin|PageSetup.RightMargin]|{excerpt-include

...

:PageSetup.RightMargin

...

TopMargin

|nopanel=true}|
|[TopMargin|PageSetup.TopMargin]|{excerpt-include

...

:PageSetup.TopMargin

...

UseZoom

|nopanel=true}|
|[UseZoom|PageSetup.UseZoom]|{excerpt-include

...

:PageSetup.UseZoom

...

Zoom

|nopanel=true}|
|[Zoom|PageSetup.Zoom]|{excerpt-include

...

:PageSetup.Zoom

...

Methods

...

Name

...

Description

|nopanel=true}|
{methods}
||Name||Description||
|[GetFooter(HeaderFooterSection.Section)

...

|PageSetup.GetFooter(HeaderFooterSection.Section)

...

]|{excerpt-include:PageSetup.GetFooter(HeaderFooterSection.Section)

...

|nopanel

...

=true}|
|[GetHeader(HeaderFooterSection.Section)

...

|PageSetup.GetHeader(HeaderFooterSection.Section)

...

]|{excerpt-include:PageSetup.GetHeader(HeaderFooterSection.Section)

...

|nopanel

...

=true}|
|[SetPrintTitleColumns(Int32, Int32)

...

|PageSetup.SetPrintTitleColumns(Int32, Int32)

...

]|{excerpt-include:PageSetup.SetPrintTitleColumns(Int32, Int32)

...

|nopanel

...

=true}|
|[SetPrintTitleRows(Int32, Int32)

...

|PageSetup.SetPrintTitleRows(Int32, Int32)

...

]|{excerpt-include:PageSetup.SetPrintTitleRows(Int32, Int32)

...

|nopanel

...

Classes

...

Name

...

Description

...

CellErrorsAs

...

PageOrientation

...

PagePaperSize

...

PagePrintOrder

...

=true}|

{classes}
||Name||Description||
|[CellErrorsAs|PageSetup.CellErrorsAs]|{excerpt-include:PageSetup.CellErrorsAs|nopanel=true}|
|[PageOrientation|PageSetup.PageOrientation]|{excerpt-include:PageSetup.PageOrientation|nopanel=true}|
|[PagePaperSize|PageSetup.PagePaperSize]|{excerpt-include:PageSetup.PagePaperSize|nopanel=true}|
|[PagePrintOrder|PageSetup.PagePrintOrder]|{excerpt-include:PageSetup.PagePrintOrder|nopanel=true}|