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
วัตถุขอบอื่น
คืนค่า
เป็นจริงถ้าขอบทั้งหมดเท่ากัน
GetHashCode()
คำนวณ hashcode สำหรับวัตถุขอบนี้
public override int GetHashCode()
คืนค่า
hashcode
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
ขอบด้านขวา