Class PageConstants
Namespace: Aspose.Page.EPS
Assembly: Aspose.Page.dll (25.1.2)
This class defines a set of constants which describe a page. Convenience objects are provided for various margins, orientations, rescaling, and standard page sizes.
public class PageConstants
Inheritance
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Fields
BACKGROUND
Background key
public const string BACKGROUND = "Background"
Field Value
BACKGROUND_COLOR
Background color key
public const string BACKGROUND_COLOR = "BackgroundColor"
Field Value
FIT_TO_PAGE
Fit content to page key
public const string FIT_TO_PAGE = "FitToPage"
Field Value
MARGINS_LARGE
“Large” page margins value
public const string MARGINS_LARGE = "Large"
Field Value
MARGINS_MEDIUM
“Medium” page margins value
public const string MARGINS_MEDIUM = "Medium"
Field Value
MARGINS_SMALL
“Small” page margins value
public const string MARGINS_SMALL = "Small"
Field Value
MARGINS_ZERO
“Zero” page margins value
public const string MARGINS_ZERO = "Zero"
Field Value
ORIENTATION
Orientation key, for the named orienation of page, Portret or Landscape.
public const string ORIENTATION = "Orientation"
Field Value
ORIENTATION_BEST_FIT
“Best fit” orientation value
public const string ORIENTATION_BEST_FIT = "Best Fit"
Field Value
ORIENTATION_LANDSCAPE
“Landscape” orientation value
public const string ORIENTATION_LANDSCAPE = "Landscape"
Field Value
ORIENTATION_PORTRAIT
“Portrait” orientation value
public const string ORIENTATION_PORTRAIT = "Portrait"
Field Value
PAGE_MARGINS
Page margins key
public const string PAGE_MARGINS = "PageMargins"
Field Value
PAGE_SIZE
Page size key
public const string PAGE_SIZE = "PageSize"
Field Value
SIZE_A3
“A3” page size value
public const string SIZE_A3 = "A3"
Field Value
SIZE_A4
“A4” page size value
public const string SIZE_A4 = "A4"
Field Value
SIZE_A5
“A5” page size value
public const string SIZE_A5 = "A5"
Field Value
SIZE_A6
“A6” page size value
public const string SIZE_A6 = "A6"
Field Value
SIZE_EXECUTIVE
“Executive” page size value
public const string SIZE_EXECUTIVE = "Executive"
Field Value
SIZE_INTERNATIONAL
“International” page size value
public const string SIZE_INTERNATIONAL = "International"
Field Value
SIZE_LEDGER
“Ledger” page size value
public const string SIZE_LEDGER = "Ledger"
Field Value
SIZE_LEGAL
“Legal” page size value
public const string SIZE_LEGAL = "Legal"
Field Value
SIZE_LETTER
“Letter” page size value
public const string SIZE_LETTER = "Letter"
Field Value
TRANSPARENT
Transparent background key
public const string TRANSPARENT = "Transparent"
Field Value
VIEWING_ORIENTATION
Viewing orientation key, for rotation matrix distinguishing orientation of content on the page. The default viewing orientation matrix is identity.
public const string VIEWING_ORIENTATION = "ViewingOrientation"
Field Value
Properties
OrientationList
public static string[] OrientationList { get; }
Property Value
string[]
SizeList
public static string[] SizeList { get; }
Property Value
string[]
Methods
GetMargins(string)
Gets page margins values
Predefined page margins namepublic static Margins GetMargins(string marginsSize)
Parameters
marginsSize
string
Returns
GetMargins(Margins, string)
Calculate page margins мфдгуы in specified orientation
Original marginsOrientation of the pagepublic static Margins GetMargins(Margins margins, string orientation)
Parameters
margins
Margins
orientation
string
Returns
GetSize(string)
Calculates page size in “Portrait” page orientation
predefined page sizepublic static Size GetSize(string size)
Parameters
size
string
Returns
GetSize(string, string)
Calculates page size in given page orientation
predefined page sizeorientation of the pagepublic static Size GetSize(string size, string orientation)
Parameters
size
string
orientation
string
Returns
GetSize(Size, string)
Calculates page size in given page orientation
Original page sizeOrientation of the pagepublic static Size GetSize(Size size, string orientation)
Parameters
size
Size
orientation
string