Create a new page with given pagesize, and format the size to landscape or portrait.
Namespace: TallComponents.PDFAssembly: TallComponents.PDF.Controls.WinForms (in TallComponents.PDF.Controls.WinForms.dll) Version: 2.0.46.0
Syntax
| C# |
|---|
public Page( PageSize pageSize, bool landscape ) |
| Visual Basic |
|---|
Public Sub New ( _ pageSize As PageSize, _ landscape As Boolean _ ) |
Parameters
- pageSize
- Type: TallComponents.PDF..::..PageSize
The specified page size
- landscape
- Type: System..::..Boolean
force the page to be landscape, otherwise force to be portrait
Remarks
The page orientation will be forced to landscape or portrait.
If you specify landscape to true and the given page size is already in landscape (eg Ledger, or custom) the page size will
not be changed. This also the case if the page size is already portrait and the landscape boolean is set to false.