WordPageSizes
OfficeIMO.Word
Provides helpers for manipulating Word page size and orientation.
Inheritance
- object
- WordPageSizes
Usage
Explore 1 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 1
- Property WordPageSetup.Size
Constructors
public WordPageSizes(WordDocument wordDocument, WordSection wordSection) #Manipulate section/page settings
Parameters
- wordDocument OfficeIMO.Word.WordDocument
- wordSection OfficeIMO.Word.WordSection
Methods
public static WordPageSizeDefinition? GetDefinition(WordPageSize pageSize) #Gets a preset's physical dimensions and printer paper code. Unknown returns null.
Parameters
- pageSize OfficeIMO.Word.WordPageSize
Returns
WordPageSizeDefinition?Inherited Methods
Properties
public WordPageSize? PageSize { get; set; } #This element specifies the properties (size and orientation) for all pages in the current section.
public OfficeLength? Width { get; set; } #Gets or sets the section width. Explicit dimension edits clear the printer paper code without changing orientation.
public OfficeLength? Height { get; set; } #Gets or sets the section height. Explicit dimension edits clear the printer paper code without changing orientation.
public OfficePageOrientation Orientation { get; set; } #Get or Set section/page Orientation
public static WordPageSizeDefinition A3 { get; } #A3 paper, 297 × 420 millimeters.
public static WordPageSizeDefinition A4 { get; } #A4 paper, 210 × 297 millimeters.
public static WordPageSizeDefinition A5 { get; } #A5 paper, 148 × 210 millimeters.
public static WordPageSizeDefinition A6 { get; } #A6 paper, 105 × 148 millimeters.
public static WordPageSizeDefinition Executive { get; } #Executive paper, 7.25 × 10.5 inches.
public static WordPageSizeDefinition B5 { get; } #JIS B5 paper, 182 × 257 millimeters. This retains the established B5 preset.
public static WordPageSizeDefinition Statement { get; } #Statement paper, 5.5 × 8.5 inches.
public static WordPageSizeDefinition Legal { get; } #Legal paper, 8.5 × 14 inches.
public static WordPageSizeDefinition Letter { get; } #Letter paper, 8.5 × 11 inches.
public static WordPageSizeDefinition Tabloid { get; } #Tabloid paper, 11 × 17 inches.
public static WordPageSizeDefinition B4Jis { get; } #JIS B4 paper, 257 × 364 millimeters.
public static WordPageSizeDefinition Envelope9 { get; } #Number 9 envelope, 3.875 × 8.875 inches.
public static WordPageSizeDefinition Envelope10 { get; } #Number 10 envelope, 4.125 × 9.5 inches.
public static WordPageSizeDefinition CSheet { get; } #C sheet, 17 × 22 inches.
public static WordPageSizeDefinition EnvelopeDl { get; } #DL envelope, 110 × 220 millimeters.
public static WordPageSizeDefinition EnvelopeC5 { get; } #C5 envelope, 162 × 229 millimeters.
public static WordPageSizeDefinition EnvelopeC4 { get; } #C4 envelope, 229 × 324 millimeters.
public static WordPageSizeDefinition EnvelopeB5 { get; } #B5 envelope, 176 × 250 millimeters.
public static WordPageSizeDefinition EnvelopeMonarch { get; } #Monarch envelope, 3.875 × 7.5 inches.