API Reference
Struct
OfficePageSize
Represents a physical page size used by image/page composition.
Inheritance
- ValueType
- OfficePageSize
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Method OfficePageSize.FromMillimeters
- Method OfficePageSize.Landscape
- Method OfficePageSize.Portrait
- Property OfficePageSizes.A3
- Property OfficePageSizes.A4
- Property OfficePageSizes.A5
- Property OfficePageSizes.A6
- Property OfficePageSizes.B4Jis
- Property OfficePageSizes.B5Jis
- Property OfficePageSizes.B6Jis
- Property OfficePageSizes.Billfold
- Property OfficePageSizes.Executive
- Property OfficePageSizes.IndexCard
- Property OfficePageSizes.JapanesePostcard
- Property OfficePageSizes.Ledger
- Property OfficePageSizes.Legal
- Property OfficePageSizes.Letter
- Property OfficePageSizes.Statement
- Property OfficePageSizes.Tabloid
Constructors
public OfficePageSize(Double widthInches, Double heightInches) #Creates a physical page size measured in inches.
Parameters
- widthInches System.Double
- heightInches System.Double
Methods
public static OfficePageSize FromMillimeters(Double widthMillimeters, Double heightMillimeters) #Returns:
OfficePageSizeCreates a page size from millimeters.
Parameters
- widthMillimeters System.Double
- heightMillimeters System.Double
public OfficePageSize Landscape() #Returns:
OfficePageSizeReturns this page size in landscape orientation.
public OfficePageSize Portrait() #Returns:
OfficePageSizeReturns this page size in portrait orientation.
public Int32 ToPixelHeight(Double dpi, Double scale = 1) #Returns:
Int32Converts the page height to pixels for the requested DPI and scale.
Parameters
- dpi System.Double
- scale System.Double = 1
public Int32 ToPixelWidth(Double dpi, Double scale = 1) #Returns:
Int32Converts the page width to pixels for the requested DPI and scale.
Parameters
- dpi System.Double
- scale System.Double = 1
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from ValueType
Parameters
- obj Object