PageLayoutOptions Enum

PageLayoutOptions enumeration

Specifies flags that together with other PageSetup options determine sizes and layouts of pages. These flags can be combined together according to their descriptions.

[Flags]
public enum PageLayoutOptions

Values

NameValueDescription
None0Default value which indicates that the PageLayoutOptions will not affect the sizes and layouts of pages.
FitToContentWidth1This flag indicates that the width of the pages is determined from the content size itself, not from the specified page width. The width of content is calculated individually for every page.
UseWidestPage2When combined with FitToContentWidth indicates that the width of every page will be the same and will be equal to the widest content size among all pages.
FitToWidestContentWidth3This flag indicates that the width of the page is determined from the content size itself, not from the specified page width. The width of every page will be the same and will be equal to the widest content size among all pages.
FitToContentHeight10This flag indicates that the height of the page is determined from the content size itself, not from the specified page height. All the documents content will be located on the single page if this flag is specified.
ScaleToPageWidth100This flag indicates that the content of the document will be scaled to fit the page where the difference between the available page width and the overlapping content is greatest. It collides with FitToContentWidth flag and if both flags are specified only ScaleToPageWidth will take affect.
ScaleToPageHeight1000This flag indicates that the content of the document will be scaled to fit the height of the first page. It collides with FitToContentHeight flag and if both flags are specified only ScaleToPageHeight will take affect. All document content will be placed on the single page only.

See Also