Class PaperSize
Represents a named paper or slide size that can be assigned to a view.
public class PaperSize
- Inheritance
-
PaperSize
- Inherited Members
Fields
A0_Landscape
Represents an A0 page in landscape orientation.
public static readonly PaperSize A0_Landscape
Field Value
A0_Portrait
Represents an A0 page in portrait orientation.
public static readonly PaperSize A0_Portrait
Field Value
A1_Landscape
Represents an A1 page in landscape orientation.
public static readonly PaperSize A1_Landscape
Field Value
A1_Portrait
Represents an A1 page in portrait orientation.
public static readonly PaperSize A1_Portrait
Field Value
A2_Landscape
Represents an A2 page in landscape orientation.
public static readonly PaperSize A2_Landscape
Field Value
A2_Portrait
Represents an A2 page in portrait orientation.
public static readonly PaperSize A2_Portrait
Field Value
A3_Landscape
Represents an A3 page in landscape orientation.
public static readonly PaperSize A3_Landscape
Field Value
A3_Portrait
Represents an A3 page in portrait orientation.
public static readonly PaperSize A3_Portrait
Field Value
A4_Landscape
Represents an A4 page in landscape orientation.
public static readonly PaperSize A4_Landscape
Field Value
A4_Portrait
Represents an A4 page in portrait orientation.
public static readonly PaperSize A4_Portrait
Field Value
A5_Landscape
Represents an A5 page in landscape orientation.
public static readonly PaperSize A5_Landscape
Field Value
A5_Portrait
Represents an A5 page in portrait orientation.
public static readonly PaperSize A5_Portrait
Field Value
A6_Landscape
Represents an A6 page in landscape orientation.
public static readonly PaperSize A6_Landscape
Field Value
A6_Portrait
Represents an A6 page in portrait orientation.
public static readonly PaperSize A6_Portrait
Field Value
Legal_Landscape
Represents US Legal paper in landscape orientation.
public static readonly PaperSize Legal_Landscape
Field Value
Legal_Portrait
Represents US Legal paper in portrait orientation.
public static readonly PaperSize Legal_Portrait
Field Value
Letter_Landscape
Represents US Letter paper in landscape orientation.
public static readonly PaperSize Letter_Landscape
Field Value
Letter_Portrait
Represents US Letter paper in portrait orientation.
public static readonly PaperSize Letter_Portrait
Field Value
Slide_16_10
Represents a 16:10 slide canvas.
public static readonly PaperSize Slide_16_10
Field Value
Slide_16_9
Represents a 16:9 slide canvas.
public static readonly PaperSize Slide_16_9
Field Value
Slide_4_3
Represents a 4:3 slide canvas.
public static readonly PaperSize Slide_4_3
Field Value
Properties
Key
Identifies the paper size in serialized view data.
public string Key { get; }
Property Value
Name
Provides the human-readable paper size name.
public string Name { get; }
Property Value
Orientation
Indicates whether the size is portrait or landscape.
public Orientation Orientation { get; }
Property Value
height
Stores the height in pixels.
public int height { get; }
Property Value
width
Stores the width in pixels.
public int width { get; }
Property Value
Methods
GetPaperSize(string)
Resolves a paper size by key.
public static PaperSize GetPaperSize(string key)
Parameters
keystringThe serialized paper size key.
Returns
- PaperSize
The matching paper size, or A4_Portrait when the key is null or unknown.