Struct CellArea

Struct CellArea

Namespace: Aspose.Cells
Assembly: Aspose.Cells.dll (25.2.0)

แทนพื้นที่ของเซลล์

public struct CellArea : IComparable

ใช้งาน

IComparable

สมาชิกที่สืบทอด

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

ตัวอย่าง


//สร้าง Cell Area
CellArea ca = new CellArea();
ca.StartRow = 0;
ca.EndRow = 0;
ca.StartColumn = 0;
ca.EndColumn = 0;

'สร้าง Cell Area
Dim ca As CellArea = New CellArea()
ca.StartRow = 0
ca.EndRow = 0
ca.StartColumn = 0
ca.EndColumn = 0

ฟิลด์

EndColumn

รับหรือกำหนดค่าสิ้นสุดคอลัมน์ของพื้นที่นี้

public int EndColumn

ค่าฟิลด์

int

EndRow

รับหรือกำหนดค่าสิ้นสุดแถวของพื้นที่นี้

public int EndRow

ค่าฟิลด์

int

StartColumn

รับหรือกำหนดค่าเริ่มต้นคอลัมน์ของพื้นที่นี้

public int StartColumn

ค่าฟิลด์

int

StartRow

รับหรือกำหนดค่าเริ่มต้นแถวของพื้นที่นี้

public int StartRow

ค่าฟิลด์

int

วิธีการ

CompareTo(object)

เปรียบเทียบวัตถุ CellArea สองตัวตามมุมมองด้านซ้ายบน

public int CompareTo(object obj)

พารามิเตอร์

obj object

คืนค่า

int

หากมุมมองสองมุมอยู่ในแถวที่แตกต่างกัน ให้เปรียบเทียบดัชนีแถวของพวกเขา มิฉะนั้นให้เปรียบเทียบดัชนีคอลัมน์ของพวกเขา หากมุมมองสองมุมเหมือนกัน จะส่งคืน 0

CreateCellArea(int, int, int, int)

สร้างพื้นที่เซลล์

public static CellArea CreateCellArea(int startRow, int startColumn, int endRow, int endColumn)

พารามิเตอร์

startRow int

แถวเริ่มต้น

startColumn int

คอลัมน์เริ่มต้น

endRow int

แถวสิ้นสุด

endColumn int

คอลัมน์สิ้นสุด

คืนค่า

CellArea

คืนค่า Aspose.Cells.CellArea

CreateCellArea(string, string)

สร้างพื้นที่เซลล์

public static CellArea CreateCellArea(string startCellName, string endCellName)

พารามิเตอร์

startCellName string

เซลล์ด้านซ้ายบนของช่วง

endCellName string

เซลล์ด้านล่างขวาของช่วง

คืนค่า

CellArea

คืนค่า Aspose.Cells.CellArea

ToString()

คืนค่าสตริงที่แทนวัตถุพื้นที่เซลล์ปัจจุบัน

public override string ToString()

คืนค่า

string

 แบบไทย