Class
CellLayoutBox

Defines the positioned rectangular bounds of a cell for rendering and hit-testing operations.

Definition

Namespace:Telerik.Windows.Documents.Spreadsheet.Layout

Assembly:Telerik.Windows.Documents.Spreadsheet.dll

Syntax:

cs-api-definition
public class CellLayoutBox : LayoutBox

Inheritance: objectLayoutBoxCellLayoutBox

Inherited Members LayoutBox.LeftLayoutBox.TopLayoutBox.WidthLayoutBox.HeightLayoutBox.SizeLayoutBox.BoundingRectangle

Constructors

CellLayoutBox(int, int, Rect, CellMergeState)

Initializes a new instance of the CellLayoutBox class.

Declaration

cs-api-definition
public CellLayoutBox(int rowIndex, int columnIndex, Rect rect, CellMergeState mergeState)

Parameters

rowIndex

int

Index of the row.

columnIndex

int

Index of the column.

rect

Rect

The rectangle.

mergeState

CellMergeState

The merge.

Properties

ColumnIndex

Zero-based column position of this cell in the worksheet grid.

Declaration

cs-api-definition
public int ColumnIndex { get; }

Property Value

int

The index of the column.

Index

Combined row and column coordinates identifying this cell's position in the worksheet.

Declaration

cs-api-definition
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

cs-api-definition
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

cs-api-definition
public int RowIndex { get; }

Property Value

int

The index of the row.

Methods

Equals(object)

Compares this cell layout box with another based on cell position (row and column index).

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

The object to compare with the current object.

Returns

bool

True if the specified object is equal to the current object; otherwise, false.

Overrides object.Equals(object)

GetHashCode()

Generates a hash code based on the cell's combined row and column index.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for the current object.

Overrides object.GetHashCode()

ToString()

Converts the cell position to a string representation in the format "(row, column)".

Declaration

cs-api-definition
public override string ToString()

Returns

string

A string that represents the current object.

Overrides LayoutBox.ToString()