Class
TableGridColumnCollection

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

Definition

Namespace:Telerik.Windows.Documents.Model

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class TableGridColumnCollection : IList<TableGridColumn>, ICollection<TableGridColumn>, IEnumerable<TableGridColumn>, IEnumerable

Inheritance: objectTableGridColumnCollection

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

Constructors

TableGridColumnCollection()

Declaration

cs-api-definition
public TableGridColumnCollection()

Properties

Count

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

Declaration

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

Property Value

int

Implements ICollection<TableGridColumn>.Count

IsReadOnly

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

Declaration

cs-api-definition
public bool IsReadOnly { get; }

Property Value

bool

Implements ICollection<TableGridColumn>.IsReadOnly

this[int]

Declaration

cs-api-definition
public TableGridColumn this[int index] { get; set; }

Parameters

index

int

Property Value

TableGridColumn

Implements IList<TableGridColumn>.this[int]

Methods

Add(TableGridColumn)

Adds a new TableGridColumn to the collection.

Declaration

cs-api-definition
public void Add(TableGridColumn item)

Parameters

item

TableGridColumn

The TableGridColumn to be added to the collection.

Implements ICollection<TableGridColumn>.Add(TableGridColumn)

Clear()

Removes all columns from the TableGridColumnCollection.

Declaration

cs-api-definition
public void Clear()

Implements ICollection<TableGridColumn>.Clear()

Contains(TableGridColumn)

Determines whether the specified TableGridColumn is contained in the collection.

Declaration

cs-api-definition
public bool Contains(TableGridColumn item)

Parameters

item

TableGridColumn

The TableGridColumn to locate in the collection.

Returns

bool

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

Implements ICollection<TableGridColumn>.Contains(TableGridColumn)

CopyTo(TableGridColumn[], int)

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

Declaration

cs-api-definition
public void CopyTo(TableGridColumn[] array, int arrayIndex)

Parameters

array

TableGridColumn[]

The array to which the elements are copied.

arrayIndex

int

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

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

GetEnumerator()

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

Declaration

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

IndexOf(TableGridColumn)

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

Declaration

cs-api-definition
public int IndexOf(TableGridColumn item)

Parameters

item

TableGridColumn

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)

Insert(int, TableGridColumn)

Inserts a TableGridColumn at the specified index in the collection.

Declaration

cs-api-definition
public void Insert(int index, TableGridColumn item)

Parameters

index

int

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

item

TableGridColumn

The TableGridColumn to insert.

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

Remove(TableGridColumn)

Removes the specified TableGridColumn from the collection.

Declaration

cs-api-definition
public bool Remove(TableGridColumn item)

Parameters

item

TableGridColumn

The TableGridColumn to remove from the collection.

Returns

bool

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

Implements ICollection<TableGridColumn>.Remove(TableGridColumn)

RemoveAt(int)

Removes the column at the specified index from the collection.

Declaration

cs-api-definition
public void RemoveAt(int index)

Parameters

index

int

The zero-based index of the column to remove.

Implements IList<TableGridColumn>.RemoveAt(int)

RemoveLast()

Removes the last column from the collection.

Declaration

cs-api-definition
public void RemoveLast()