New to Telerik UI for WinFormsStart a free 30-day trial

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:

C#
public class ColumnLayoutBox : LayoutBox

Inheritance: objectLayoutBoxColumnLayoutBox

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

Constructors

Initializes a new instance of the ColumnLayoutBox class.

C#
public ColumnLayoutBox(int columnIndex, Rect rect)
Parameters:columnIndexint

Index of the column.

rectRect

The rectangle.

Properties

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

C#
public int ColumnIndex { get; }
Property Value:

The index of the column.

Methods

Compares this column layout box with another based on column index.

C#
public override bool Equals(object obj)
Parameters:objobject

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)

Generates a hash code based on the column index.

C#
public override int GetHashCode()
Returns:

int

A hash code for the current object.

Overrides: object.GetHashCode()

Converts the column layout box to a string showing its index and bounding rectangle.

C#
public override string ToString()
Returns:

string

A string that represents the current object.

Overrides: LayoutBox.ToString()