Struct
OfficePageSize
OfficeIMO.Drawing
Represents a physical page size used by image/page composition.
Inheritance
- ValueType
- OfficePageSize
Usage
Explore 26 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 26
- 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.CSheet
- Property OfficePageSizes.Envelope10
- Property OfficePageSizes.Envelope9
- Property OfficePageSizes.EnvelopeB5
- Property OfficePageSizes.EnvelopeC4
- Property OfficePageSizes.EnvelopeC5
- Property OfficePageSizes.EnvelopeDl
- Property OfficePageSizes.EnvelopeMonarch
- 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(OfficeLength width, OfficeLength height) #Creates a physical page size from positive document lengths.
Parameters
- width OfficeIMO.OfficeLength
- height OfficeIMO.OfficeLength
Methods
public OfficePageSize Landscape() #Returns this page size in landscape orientation.
Returns
OfficePageSizepublic OfficePageSize Portrait() #Returns this page size in portrait orientation.
Returns
OfficePageSizepublic int ToPixelHeight(double dpi, double scale = 1) #Converts the page height to pixels for the requested DPI and scale.
Parameters
- dpi double
- scale double = 1
Returns
intpublic int ToPixelWidth(double dpi, double scale = 1) #Converts the page width to pixels for the requested DPI and scale.
Parameters
- dpi double
- scale double = 1
Returns
int