Class CellLayoutBox
Defines the positioned rectangular bounds of a cell for rendering and hit-testing operations.
Inherited Members
Namespace: Telerik.Windows.Documents.Spreadsheet.Layout
Assembly: Telerik.Windows.Documents.Spreadsheet.dll
Syntax
public class CellLayoutBox : LayoutBox
Constructors
CellLayoutBox(Int32, Int32, Rect, CellMergeState)
Initializes a new instance of the CellLayoutBox class.
Declaration
public CellLayoutBox(int rowIndex, int columnIndex, Rect rect, CellMergeState mergeState)
Parameters
|
System.Int32
rowIndex
Index of the row. |
|
System.Int32
columnIndex
Index of the column. |
|
System.Windows.Rect
rect
The rectangle. |
|
CellMergeState
mergeState
The merge. |
Properties
ColumnIndex
Zero-based column position of this cell in the worksheet grid.
Declaration
public int ColumnIndex { get; }
Property Value
|
System.Int32
The index of the column. |
Index
Combined row and column coordinates identifying this cell's position in the worksheet.
Declaration
public CellIndex Index { get; }
Property Value
|
CellIndex
The index. |
MergeState
Indicates whether this cell is merged and its role within the merged region (top-left, other, or not merged).
Declaration
public CellMergeState MergeState { get; }
Property Value
|
CellMergeState
The merge state of the cell. |
RowIndex
Zero-based row position of this cell in the worksheet grid.
Declaration
public int RowIndex { get; }
Property Value
|
System.Int32
The index of the row. |
Methods
Equals(Object)
Compares this cell layout box with another based on cell position (row and column index).
Declaration
public override bool Equals(object obj)
Parameters
|
System.Object
obj
The System.Object to compare with the current System.Object. |
Returns
|
System.Boolean
True if the specified System.Object is equal to the current System.Object; otherwise, false. |
Overrides
GetHashCode()
Generates a hash code based on the cell's combined row and column index.
Declaration
public override int GetHashCode()
Returns
|
System.Int32
A hash code for the current System.Object. |
Overrides
ToString()
Converts the cell position to a string representation in the format "(row, column)".
Declaration
public override string ToString()
Returns
|
System.String
A System.String that represents the current System.Object. |