Struct CellArea
Struct CellArea
Namespace: Aspose.Cells
Assembly: Aspose.Cells.dll (25.2.0)
表示一个单元格区域。
public struct CellArea : IComparable
实现
继承成员
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
示例
//创建单元格区域
CellArea ca = new CellArea();
ca.StartRow = 0;
ca.EndRow = 0;
ca.StartColumn = 0;
ca.EndColumn = 0;
'创建单元格区域
Dim ca As CellArea = New CellArea()
ca.StartRow = 0
ca.EndRow = 0
ca.StartColumn = 0
ca.EndColumn = 0
字段
EndColumn
获取或设置此区域的结束列。
public int EndColumn
字段值
EndRow
获取或设置此区域的结束行。
public int EndRow
字段值
StartColumn
获取或设置此区域的起始列。
public int StartColumn
字段值
StartRow
获取或设置此区域的起始行。
public int StartRow
字段值
方法
CompareTo(object)
根据左上角比较两个 CellArea 对象。
public int CompareTo(object obj)
参数
obj
object
返回
如果两个角在不同的行,则比较它们的行索引。否则比较它们的列索引。 如果两个角相同,则返回 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
结束列。
返回
返回一个 Aspose.Cells.CellArea。
CreateCellArea(string, string)
创建一个单元格区域。
public static CellArea CreateCellArea(string startCellName, string endCellName)
参数
startCellName
string
范围的左上角单元格。
endCellName
string
范围的右下角单元格。
返回
返回一个 Aspose.Cells.CellArea。
ToString()
返回一个字符串表示当前单元格区域对象。
public override string ToString()