Class PageConstants

Class PageConstants

Namespace: Aspose.Page.EPS
Assembly: Aspose.Page.dll (25.1.2)

此类定义了一组描述页面的常量。
提供了方便的对象用于各种边距、方向、缩放和标准页面大小。

public class PageConstants

继承

objectPageConstants

继承成员

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

字段

BACKGROUND

背景键

public const string BACKGROUND = "Background"

字段值

string

BACKGROUND_COLOR

背景颜色键

public const string BACKGROUND_COLOR = "BackgroundColor"

字段值

string

FIT_TO_PAGE

适应页面内容键

public const string FIT_TO_PAGE = "FitToPage"

字段值

string

MARGINS_LARGE

“Large”页面边距值

public const string MARGINS_LARGE = "Large"

字段值

string

MARGINS_MEDIUM

“Medium”页面边距值

public const string MARGINS_MEDIUM = "Medium"

字段值

string

MARGINS_SMALL

“Small”页面边距值

public const string MARGINS_SMALL = "Small"

字段值

string

MARGINS_ZERO

“Zero”页面边距值

public const string MARGINS_ZERO = "Zero"

字段值

string

ORIENTATION

方向键,用于页面的命名方向,纵向或横向。

public const string ORIENTATION = "Orientation"

字段值

string

ORIENTATION_BEST_FIT

“最佳适应”方向值

public const string ORIENTATION_BEST_FIT = "Best Fit"

字段值

string

ORIENTATION_LANDSCAPE

“横向”方向值

public const string ORIENTATION_LANDSCAPE = "Landscape"

字段值

string

ORIENTATION_PORTRAIT

“纵向”方向值

public const string ORIENTATION_PORTRAIT = "Portrait"

字段值

string

PAGE_MARGINS

页面边距键

public const string PAGE_MARGINS = "PageMargins"

字段值

string

PAGE_SIZE

页面大小键

public const string PAGE_SIZE = "PageSize"

字段值

string

SIZE_A3

“A3”页面大小值

public const string SIZE_A3 = "A3"

字段值

string

SIZE_A4

“A4”页面大小值

public const string SIZE_A4 = "A4"

字段值

string

SIZE_A5

“A5”页面大小值

public const string SIZE_A5 = "A5"

字段值

string

SIZE_A6

“A6”页面大小值

public const string SIZE_A6 = "A6"

字段值

string

SIZE_EXECUTIVE

“Executive”页面大小值

public const string SIZE_EXECUTIVE = "Executive"

字段值

string

SIZE_INTERNATIONAL

“International”页面大小值

public const string SIZE_INTERNATIONAL = "International"

字段值

string

SIZE_LEDGER

“Ledger”页面大小值

public const string SIZE_LEDGER = "Ledger"

字段值

string

SIZE_LEGAL

“Legal”页面大小值

public const string SIZE_LEGAL = "Legal"

字段值

string

SIZE_LETTER

“Letter”页面大小值

public const string SIZE_LETTER = "Letter"

字段值

string

TRANSPARENT

透明背景键

public const string TRANSPARENT = "Transparent"

字段值

string

VIEWING_ORIENTATION

查看方向键,用于旋转矩阵区分页面内容的方向。默认的查看方向矩阵为单位矩阵。

public const string VIEWING_ORIENTATION = "ViewingOrientation"

字段值

string

属性

OrientationList

可用的方向值

public static string[] OrientationList { get; }

属性值

string[]

SizeList

可用的页面大小值

public static string[] SizeList { get; }

属性值

string[]

方法

GetMargins(string)

获取页面边距值

预定义的页面边距名称预定义的页面边距值
public static Margins GetMargins(string marginsSize)

参数

marginsSize string

返回

Margins

GetMargins(Margins, string)

在指定方向中计算页面边距

原始边距页面的方向给定方向的预定义页面边距
public static Margins GetMargins(Margins margins, string orientation)

参数

margins Margins

orientation string

返回

Margins

GetSize(string)

在“纵向”页面方向中计算页面大小

预定义的页面大小计算得到的页面大小
public static Size GetSize(string size)

参数

size string

返回

Size

GetSize(string, string)

在给定页面方向中计算页面大小

预定义的页面大小页面的方向计算得到的页面大小
public static Size GetSize(string size, string orientation)

参数

size string

orientation string

返回

Size

GetSize(Size, string)

在给定页面方向中计算页面大小

原始页面大小页面的方向计算得到的页面大小
public static Size GetSize(Size size, string orientation)

参数

size Size

orientation string

返回

Size

 中文