Struct CellArea
Namespace: Aspose.Cells
Assembly: Aspose.Cells.dll (25.2.0)
Represent an area of cells.
public struct CellArea : IComparable
Implements
Inherited Members
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Examples
csharp
[C#]
//Create Cell Area
CellArea ca = new CellArea();
ca.StartRow = 0;
ca.EndRow = 0;
ca.StartColumn = 0;
ca.EndColumn = 0;
'Create Cell Area
Dim ca As CellArea = New CellArea()
ca.StartRow = 0
ca.EndRow = 0
ca.StartColumn = 0
ca.EndColumn = 0
Fields
EndColumn
Gets or set the end column of this area.
public int EndColumn
Field Value
EndRow
Gets or set the end row of this area.
public int EndRow
Field Value
StartColumn
Gets or set the start column of this area.
public int StartColumn
Field Value
StartRow
Gets or set the start row of this area.
public int StartRow
Field Value
Methods
CompareTo(object)
Compare two CellArea objects according to their top-left corner.
public int CompareTo(object obj)
Parameters
obj
object
Returns
If two corners are in different rows, then compare their row index. Otherwise compare their column index. If two corners are same, then 0 will be returned.
CreateCellArea(int, int, int, int)
Creates a cell area.
public static CellArea CreateCellArea(int startRow, int startColumn, int endRow, int endColumn)
Parameters
startRow
int
The start row.
startColumn
int
The start column.
endRow
int
The end row.
endColumn
int
The end column.
Returns
Return a Aspose.Cells.CellArea.
CreateCellArea(string, string)
Creates a cell area.
public static CellArea CreateCellArea(string startCellName, string endCellName)
Parameters
startCellName
string
The top-left cell of the range.
endCellName
string
The bottom-right cell of the range.
Returns
Return a Aspose.Cells.CellArea.
ToString()
Returns a string represents the current cell area object.
public override string ToString()