Class
ColumnLayoutBox

Defines the positioned rectangular bounds of an entire column 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 ColumnLayoutBox : LayoutBox

Inheritance: objectLayoutBoxColumnLayoutBox

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

Constructors

ColumnLayoutBox(int, Rect)

Initializes a new instance of the ColumnLayoutBox class.

Declaration

cs-api-definition
public ColumnLayoutBox(int columnIndex, Rect rect)

Parameters

columnIndex

int

Index of the column.

rect

Rect

The rectangle.

Properties

ColumnIndex

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

Declaration

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

Property Value

int

The index of the column.

Methods

Equals(object)

Compares this column layout box with another based on 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 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 column layout box to a string showing its index and bounding rectangle.

Declaration

cs-api-definition
public override string ToString()

Returns

string

A string that represents the current object.

Overrides LayoutBox.ToString()