Class Margins
Class Margins
Namespace: Aspose.Page
Assembly: Aspose.Page.dll (25.1.2)
该类封装了上、左、下和右边距。
public class Margins
继承
继承的成员
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
构造函数
Margins(int, int, int, int)
初始化 Margin 类的实例。
public Margins(int top, int left, int bottom, int right)
参数
top
int
上边距。
left
int
左边距。
bottom
int
下边距。
right
int
右边距。
字段
bottom
下边距。
public int bottom
字段值
left
左边距。
public int left
字段值
right
右边距。
public int right
字段值
top
上边距。
public int top
字段值
方法
Equals(object)
比较此边距与其他边距。
public override bool Equals(object obj)
参数
obj
object
另一个边距对象。
返回
如果所有边距相等,则为 true。
GetHashCode()
计算此边距对象的哈希码。
public override int GetHashCode()
返回
一个哈希码。
ToString()
生成表示此边距对象的字符串。
public override string ToString()
返回
此边距对象的字符串表示。
set(int, int, int, int)
指定边距值。
public void set(int top, int left, int bottom, int right)
参数
top
int
上边距。
left
int
左边距。
bottom
int
下边距。
right
int
右边距。