Class PageConstants
Namespace: Aspose.Page.EPS
Assembly: Aspose.Page.dll (25.1.2)
此类定义了一组描述页面的常量。
提供了方便的对象用于各种边距、方向、缩放和标准页面大小。
public class PageConstants
继承
继承成员
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"
字段值
BACKGROUND_COLOR
背景颜色键
public const string BACKGROUND_COLOR = "BackgroundColor"
字段值
FIT_TO_PAGE
适应页面内容键
public const string FIT_TO_PAGE = "FitToPage"
字段值
MARGINS_LARGE
“Large”页面边距值
public const string MARGINS_LARGE = "Large"
字段值
MARGINS_MEDIUM
“Medium”页面边距值
public const string MARGINS_MEDIUM = "Medium"
字段值
MARGINS_SMALL
“Small”页面边距值
public const string MARGINS_SMALL = "Small"
字段值
MARGINS_ZERO
“Zero”页面边距值
public const string MARGINS_ZERO = "Zero"
字段值
ORIENTATION
方向键,用于页面的命名方向,纵向或横向。
public const string ORIENTATION = "Orientation"
字段值
ORIENTATION_BEST_FIT
“最佳适应”方向值
public const string ORIENTATION_BEST_FIT = "Best Fit"
字段值
ORIENTATION_LANDSCAPE
“横向”方向值
public const string ORIENTATION_LANDSCAPE = "Landscape"
字段值
ORIENTATION_PORTRAIT
“纵向”方向值
public const string ORIENTATION_PORTRAIT = "Portrait"
字段值
PAGE_MARGINS
页面边距键
public const string PAGE_MARGINS = "PageMargins"
字段值
PAGE_SIZE
页面大小键
public const string PAGE_SIZE = "PageSize"
字段值
SIZE_A3
“A3”页面大小值
public const string SIZE_A3 = "A3"
字段值
SIZE_A4
“A4”页面大小值
public const string SIZE_A4 = "A4"
字段值
SIZE_A5
“A5”页面大小值
public const string SIZE_A5 = "A5"
字段值
SIZE_A6
“A6”页面大小值
public const string SIZE_A6 = "A6"
字段值
SIZE_EXECUTIVE
“Executive”页面大小值
public const string SIZE_EXECUTIVE = "Executive"
字段值
SIZE_INTERNATIONAL
“International”页面大小值
public const string SIZE_INTERNATIONAL = "International"
字段值
SIZE_LEDGER
“Ledger”页面大小值
public const string SIZE_LEDGER = "Ledger"
字段值
SIZE_LEGAL
“Legal”页面大小值
public const string SIZE_LEGAL = "Legal"
字段值
SIZE_LETTER
“Letter”页面大小值
public const string SIZE_LETTER = "Letter"
字段值
TRANSPARENT
透明背景键
public const string TRANSPARENT = "Transparent"
字段值
VIEWING_ORIENTATION
查看方向键,用于旋转矩阵区分页面内容的方向。默认的查看方向矩阵为单位矩阵。
public const string VIEWING_ORIENTATION = "ViewingOrientation"
字段值
属性
OrientationList
public static string[] OrientationList { get; }
属性值
string[]
SizeList
public static string[] SizeList { get; }
属性值
string[]
方法
GetMargins(string)
获取页面边距值
预定义的页面边距名称public static Margins GetMargins(string marginsSize)
参数
marginsSize
string
返回
GetMargins(Margins, string)
在指定方向中计算页面边距
原始边距页面的方向public static Margins GetMargins(Margins margins, string orientation)
参数
margins
Margins
orientation
string
返回
GetSize(string)
在“纵向”页面方向中计算页面大小
预定义的页面大小public static Size GetSize(string size)
参数
size
string
返回
GetSize(string, string)
在给定页面方向中计算页面大小
预定义的页面大小页面的方向public static Size GetSize(string size, string orientation)
参数
size
string
orientation
string
返回
GetSize(Size, string)
在给定页面方向中计算页面大小
原始页面大小页面的方向public static Size GetSize(Size size, string orientation)
参数
size
Size
orientation
string