Struct CellArea

Struct CellArea

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

Represent an area of cells.

public struct CellArea : IComparable

Implements

IComparable

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

int

EndRow

Gets or set the end row of this area.

public int EndRow

Field Value

int

StartColumn

Gets or set the start column of this area.

public int StartColumn

Field Value

int

StartRow

Gets or set the start row of this area.

public int StartRow

Field Value

int

Methods

CompareTo(object)

Compare two CellArea objects according to their top-left corner.

public int CompareTo(object obj)

Parameters

obj object

Returns

int

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

CellArea

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

CellArea

Return a Aspose.Cells.CellArea.

ToString()

Returns a string represents the current cell area object.

public override string ToString()

Returns

string