Class PageConstants

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

objectPageConstants

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

string

BACKGROUND_COLOR

Background color key

public const string BACKGROUND_COLOR = "BackgroundColor"

Field Value

string

FIT_TO_PAGE

Fit content to page key

public const string FIT_TO_PAGE = "FitToPage"

Field Value

string

MARGINS_LARGE

“Large” page margins value

public const string MARGINS_LARGE = "Large"

Field Value

string

MARGINS_MEDIUM

“Medium” page margins value

public const string MARGINS_MEDIUM = "Medium"

Field Value

string

MARGINS_SMALL

“Small” page margins value

public const string MARGINS_SMALL = "Small"

Field Value

string

MARGINS_ZERO

“Zero” page margins value

public const string MARGINS_ZERO = "Zero"

Field Value

string

ORIENTATION

Orientation key, for the named orienation of page, Portret or Landscape.

public const string ORIENTATION = "Orientation"

Field Value

string

ORIENTATION_BEST_FIT

“Best fit” orientation value

public const string ORIENTATION_BEST_FIT = "Best Fit"

Field Value

string

ORIENTATION_LANDSCAPE

“Landscape” orientation value

public const string ORIENTATION_LANDSCAPE = "Landscape"

Field Value

string

ORIENTATION_PORTRAIT

“Portrait” orientation value

public const string ORIENTATION_PORTRAIT = "Portrait"

Field Value

string

PAGE_MARGINS

Page margins key

public const string PAGE_MARGINS = "PageMargins"

Field Value

string

PAGE_SIZE

Page size key

public const string PAGE_SIZE = "PageSize"

Field Value

string

SIZE_A3

“A3” page size value

public const string SIZE_A3 = "A3"

Field Value

string

SIZE_A4

“A4” page size value

public const string SIZE_A4 = "A4"

Field Value

string

SIZE_A5

“A5” page size value

public const string SIZE_A5 = "A5"

Field Value

string

SIZE_A6

“A6” page size value

public const string SIZE_A6 = "A6"

Field Value

string

SIZE_EXECUTIVE

“Executive” page size value

public const string SIZE_EXECUTIVE = "Executive"

Field Value

string

SIZE_INTERNATIONAL

“International” page size value

public const string SIZE_INTERNATIONAL = "International"

Field Value

string

SIZE_LEDGER

“Ledger” page size value

public const string SIZE_LEDGER = "Ledger"

Field Value

string

SIZE_LEGAL

“Legal” page size value

public const string SIZE_LEGAL = "Legal"

Field Value

string

SIZE_LETTER

“Letter” page size value

public const string SIZE_LETTER = "Letter"

Field Value

string

TRANSPARENT

Transparent background key

public const string TRANSPARENT = "Transparent"

Field Value

string

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

string

Properties

OrientationList

Available orientation values

public static string[] OrientationList { get; }

Property Value

string[]

SizeList

Available page size values

public static string[] SizeList { get; }

Property Value

string[]

Methods

GetMargins(string)

Gets page margins values

Predefined page margins namePredefined page margins values
public static Margins GetMargins(string marginsSize)

Parameters

marginsSize string

Returns

Margins

GetMargins(Margins, string)

Calculate page margins мфдгуы in specified orientation

Original marginsOrientation of the pageЗredefined page margins for given orientation
public static Margins GetMargins(Margins margins, string orientation)

Parameters

margins Margins

orientation string

Returns

Margins

GetSize(string)

Calculates page size in “Portrait” page orientation

predefined page sizeCalculated page size
public static Size GetSize(string size)

Parameters

size string

Returns

Size

GetSize(string, string)

Calculates page size in given page orientation

predefined page sizeorientation of the pageCalculated page size
public static Size GetSize(string size, string orientation)

Parameters

size string

orientation string

Returns

Size

GetSize(Size, string)

Calculates page size in given page orientation

Original page sizeOrientation of the pageCalculated page size
public static Size GetSize(Size size, string orientation)

Parameters

size Size

orientation string

Returns

Size

 English