New to Telerik UI for WinForms? Start a free 30-day trial

Stores table grid columns in their layout order; each list index is the corresponding column index.

Definition

Namespace:Telerik.WinForms.Documents.Model

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class TableGridColumnCollection : IEnumerable

Inheritance: objectTableGridColumnCollection

Implements: IEnumerable

Constructors

Creates an empty table grid column collection.

C#
public TableGridColumnCollection()

Properties

Gets the number of columns in the collection.

C#
public int Count { get; }

Gets whether the collection is read-only. This collection always allows modification.

C#
public bool IsReadOnly { get; }

Gets or replaces the column at the specified grid index.

C#
public TableGridColumn this[int index] { get; set; }
Parameters:indexint

The zero-based grid column index.

Property Value:

The column at index.

Methods

Adds a column at the end of the grid order.

C#
public void Add(TableGridColumn item)
Parameters:itemTableGridColumn

The column to add.

Removes all columns from the collection.

C#
public void Clear()

Gets whether the specified column is in the collection.

C#
public bool Contains(TableGridColumn item)
Parameters:itemTableGridColumn

The column to locate.

Returns:

bool

true if the column is present; otherwise, false.

Copies the columns to an array, starting at the specified destination index.

C#
public void CopyTo(TableGridColumn[] array, int arrayIndex)
Parameters:arrayTableGridColumn[]

The destination array.

arrayIndexint

The zero-based destination index at which copying begins.

Returns an enumerator that visits columns in grid order.

C#
public IEnumerator<TableGridColumn> GetEnumerator()
Returns:

IEnumerator<TableGridColumn>

An enumerator over the columns.

Gets the zero-based grid index of the first matching column.

C#
public int IndexOf(TableGridColumn item)
Parameters:itemTableGridColumn

The column to locate.

Returns:

int

The index of the column, or -1 if it is not present.

Inserts a column at the specified grid index and shifts following columns to the right.

C#
public void Insert(int index, TableGridColumn item)
Parameters:indexint

The zero-based index at which to insert the column.

itemTableGridColumn

The column to insert.

Removes the first matching column from the collection.

C#
public bool Remove(TableGridColumn item)
Parameters:itemTableGridColumn

The column to remove.

Returns:

bool

true if the column was found and removed; otherwise, false.

Removes the column at the specified grid index and shifts following columns to the left.

C#
public void RemoveAt(int index)
Parameters:indexint

The zero-based index of the column to remove.

Removes the final column in the collection.

C#
public void RemoveLast()
Exceptions: ArgumentOutOfRangeException

The collection is empty.