RtfPageSetup
OfficeIMO.Rtf
Page size and margin settings for an RTF document.
Inheritance
- object
- RtfPageSetup
Usage
Explore 11 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 11
- Method RtfDocument.GetEffectivePageSetup
- Property RtfDocument.PageSetup
- Method RtfPageSetup.SetDifferentFirstPageHeaderFooter
- Method RtfPageSetup.SetGutter
- Method RtfPageSetup.SetHeaderFooterDistance
- Method RtfPageSetup.SetLandscape
- Method RtfPageSetup.SetMargins
- Method RtfPageSetup.SetPageNumbering
- Method RtfPageSetup.SetPaperSize
- Method RtfPageSetup.SetPrinterPaper
- Property RtfSection.PageSetup
Constructors
public RtfPageSetup() #Methods
public RtfPageSetup SetGutter(int? gutterWidthTwips = null, bool rtlGutter = false) #Sets gutter width in twips.
Parameters
- gutterWidthTwips int? = null
- rtlGutter bool = false
Returns
RtfPageSetuppublic RtfPageSetup SetLandscape(bool landscape = true) #Sets whether landscape orientation should be emitted.
Parameters
- landscape bool = true
Returns
RtfPageSetuppublic RtfPageSetup SetMargins(int? leftTwips = null, int? rightTwips = null, int? topTwips = null, int? bottomTwips = null) #Sets document margins in twips.
Parameters
- leftTwips int? = null
- rightTwips int? = null
- topTwips int? = null
- bottomTwips int? = null
Returns
RtfPageSetuppublic RtfPageSetup SetPageNumbering(int? start = null, bool? restart = null, RtfPageNumberFormat? format = null, int? positionXTwips = null, int? positionYTwips = null) #Sets page numbering controls.
Parameters
- start int? = null
- restart bool? = null
- format OfficeIMO.Rtf.RtfPageNumberFormat? = null
- positionXTwips int? = null
- positionYTwips int? = null
Returns
RtfPageSetuppublic RtfPageSetup SetPaperSize(int widthTwips, int heightTwips) #Sets paper size in twips.
Parameters
- widthTwips int
- heightTwips int
Returns
RtfPageSetuppublic RtfPageSetup SetPrinterPaper(int? paperSize = null, int? firstPageSource = null, int? otherPagesSource = null) #Sets printer-specific paper metadata.
Parameters
- paperSize int? = null
- firstPageSource int? = null
- otherPagesSource int? = null
Returns
RtfPageSetupInherited Methods
Properties
public int? PrinterPaperSize { get; set; } #Printer paper size code represented by \psz.
public int? FirstPagePaperSource { get; set; } #Printer bin source for the first page represented by \binfsxn.
public int? OtherPagesPaperSource { get; set; } #Printer bin source for subsequent pages represented by \binsxn.
public int? HeaderDistanceTwips { get; set; } #Header distance from the top edge of the page in twips.
public bool? PageNumberRestart { get; set; } #Whether page numbering restarts in this page setup. false represents continuous numbering.
public int? PageNumberPositionXTwips { get; set; } #Horizontal page-number position in twips from the right margin.
public int? PageNumberPositionYTwips { get; set; } #Vertical page-number position in twips from the top margin.
public RtfPageNumberFormat? PageNumberFormat { get; set; } #Page-number display format.
public bool Landscape { get; set; } #Whether the document declares landscape orientation.
public bool? DirectLandscape { get; set; } #Authored orientation. Null inherits the document's orientation; false explicitly selects portrait.
public bool RtlGutter { get; set; } #Whether the gutter should be positioned on the right side.
public bool? DirectRtlGutter { get; set; } #Authored gutter direction. Null inherits the document setting.