Click or drag to resize
PageSetupOrientation Property
Gets or sets the page orientation.

Namespace:  GemBox.Document
Assembly:  GemBox.Document (in GemBox.Document.dll) Version: 25.3.30.1243
Syntax
public Orientation Orientation { get; set; }

Property Value

Type: Orientation
The page orientation.
Remarks

Changing of Orientation property swaps values of PageWidth and PageHeight properties.

This member is supported in printing.

GemBox.Document uses enhanced printing services provided with Windows Presentation Foundation (WPF). All pages of a specific Section will be printed with settings from PageSetup of that section. Internally, WPF printing uses PrintTicket class to specify page printing settings and value of this member is applied to appropriate member of PrintTicket instance which is used to print all pages of a section with this print options member.

PrintTicket instance which is used to print every page of a section is constructed in following order:

Based on stream specified in PrintOptions(Stream) constructor (base print ticket). Appropriate base print ticket members are set based on PrintOptions instance members values. Base print ticket is cloned for each section, clone's appropriate members are set based on PageSetup instance of that section and clone is used to print all pages of that section.

Printing settings which do not exist in PrintOptions nor in PageSetup can be specified on base print ticket (which stream is passed to PrintOptions(Stream) constructor).

See Also