Class
TableGridRowCollection

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

Definition

Namespace:Telerik.Windows.Documents.Model

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class TableGridRowCollection : ICollection<TableGridRow>, IEnumerable<TableGridRow>, IEnumerable

Inheritance: objectTableGridRowCollection

Implements: ICollection<TableGridRow>IEnumerableIEnumerable<TableGridRow>

Constructors

TableGridRowCollection()

Declaration

cs-api-definition
public TableGridRowCollection()

Properties

Count

Gets the number of rows in the TableGridRowCollection.

Declaration

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

Property Value

int

Implements ICollection<TableGridRow>.Count

IsReadOnly

Gets a value indicating whether the collection is read-only.

Declaration

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

Property Value

bool

True if the collection is read-only; otherwise, false.

Implements ICollection<TableGridRow>.IsReadOnly

this[int]

Declaration

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

Parameters

index

int

Property Value

TableGridRow

Methods

Add(TableGridRow)

Adds a new TableGridRow to the collection.

Declaration

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

Parameters

item

TableGridRow

The TableGridRow to be added to the collection.

Implements ICollection<TableGridRow>.Add(TableGridRow)

Clear()

Removes all elements from the TableGridRowCollection, effectively clearing the collection.

Declaration

cs-api-definition
public void Clear()

Implements ICollection<TableGridRow>.Clear()

Remarks

This method does not return any value, but it modifies the collection to ensure it is empty.

Contains(TableGridRow)

Determines whether the collection contains a specific row.

Declaration

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

Parameters

item

TableGridRow

The row to locate in the collection.

Returns

bool

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

Implements ICollection<TableGridRow>.Contains(TableGridRow)

CopyTo(TableGridRow[], int)

Copies the elements of the TableGridRowCollection to a specified one-dimensional array, starting at the specified array index.

Declaration

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

Parameters

array

TableGridRow[]

The one-dimensional array that is the destination of the elements copied from the TableGridRowCollection. The array must have zero-based indexing.

arrayIndex

int

The zero-based index in the destination array at which storing the first element from the TableGridRowCollection.

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

GetEnumerator()

Returns an enumerator that iterates through the collection of table grid rows.

Declaration

cs-api-definition
public IEnumerator<TableGridRow> GetEnumerator()

Returns

IEnumerator<TableGridRow>

An enumerator that can be used to iterate through the TableGridRowCollection.

Implements IEnumerable<TableGridRow>.GetEnumerator()

Remove(TableGridRow)

Removes a specified row from the collection of table grid rows.

Declaration

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

Parameters

item

TableGridRow

The row to be removed from the collection.

Returns

bool

Always returns true if the row was successfully removed; otherwise, false.

Implements ICollection<TableGridRow>.Remove(TableGridRow)

ToString()

Returns a string representation of the current instance of the TableGridRowCollection.

Declaration

cs-api-definition
public override string ToString()

Returns

string

A string that represents the current TableGridRowCollection.

Overrides object.ToString()