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

Represents a collection of table grid columns in a document model.

Definition

Namespace:Telerik.Windows.Documents.Model

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public class TableGridColumnCollection : IList<TableGridColumn>, ICollection<TableGridColumn>, IEnumerable<TableGridColumn>, IEnumerable

Inheritance: objectTableGridColumnCollection

Implements: ICollection<TableGridColumn>IEnumerableIEnumerable<TableGridColumn>IList<TableGridColumn>

Constructors

C#
public TableGridColumnCollection()

Properties

Gets the number of columns in the table grid column collection.

C#
public int Count { get; }

Implements: ICollection<TableGridColumn>.Count

Gets a value indicating whether the collection of table grid columns is read-only.

C#
public bool IsReadOnly { get; }

Implements: ICollection<TableGridColumn>.IsReadOnly

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

Implements: IList<TableGridColumn>.this[int]

Methods

Adds a new TableGridColumn to the collection.

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

The TableGridColumn to be added to the collection.

Implements: ICollection<TableGridColumn>.Add(TableGridColumn)

Removes all columns from the TableGridColumnCollection.

C#
public void Clear()

Implements: ICollection<TableGridColumn>.Clear()

Determines whether the specified TableGridColumn is contained in the collection.

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

The TableGridColumn to locate in the collection.

Returns:

bool

True if the collection contains the specified TableGridColumn; otherwise, false.

Implements: ICollection<TableGridColumn>.Contains(TableGridColumn)

Copies the elements of the current TableGridColumnCollection to the specified array, starting at a specified index.

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

The array to which the elements are copied.

arrayIndexint

The zero-based index in the array at which copying begins.

Implements: ICollection<TableGridColumn>.CopyTo(TableGridColumn[], int)

Retrieves an enumerator that iterates through the collection of table grid columns.

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

IEnumerator<TableGridColumn>

An enumerator positioned at the start of the collection, allowing iteration through the table grid columns.

Implements: IEnumerable<TableGridColumn>.GetEnumerator()

Retrieves the zero-based index of a specified TableGridColumn within the collection.

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

The TableGridColumn to locate in the collection.

Returns:

int

The zero-based index of the specified TableGridColumn if found; otherwise, -1.

Implements: IList<TableGridColumn>.IndexOf(TableGridColumn)

Inserts a TableGridColumn at the specified index in the collection.

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

The zero-based index at which the column should be inserted.

itemTableGridColumn

The TableGridColumn to insert.

Implements: IList<TableGridColumn>.Insert(int, TableGridColumn)

Removes the specified TableGridColumn from the collection.

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

The TableGridColumn to remove from the collection.

Returns:

bool

Returns true if the column was successfully removed; otherwise, false.

Implements: ICollection<TableGridColumn>.Remove(TableGridColumn)

Removes the column at the specified index from the collection.

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

The zero-based index of the column to remove.

Implements: IList<TableGridColumn>.RemoveAt(int)

Removes the last column from the collection.

C#
public void RemoveLast()