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

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

Definition

Namespace:Telerik.Windows.Documents.Model

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public class TableGridRowCollection : ICollection<TableGridRow>, IEnumerable<TableGridRow>, IEnumerable

Inheritance: objectTableGridRowCollection

Implements: ICollection<TableGridRow>IEnumerableIEnumerable<TableGridRow>

Constructors

C#
public TableGridRowCollection()

Properties

Gets the number of rows in the TableGridRowCollection.

C#
public int Count { get; }

Implements: ICollection<TableGridRow>.Count

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

C#
public bool IsReadOnly { get; }
Property Value:

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

Implements: ICollection<TableGridRow>.IsReadOnly

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

Methods

Adds a new TableGridRow to the collection.

C#
public void Add(TableGridRow item)
Parameters:itemTableGridRow

The TableGridRow to be added to the collection.

Implements: ICollection<TableGridRow>.Add(TableGridRow)

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

C#
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.

Determines whether the collection contains a specific row.

C#
public bool Contains(TableGridRow item)
Parameters:itemTableGridRow

The row to locate in the collection.

Returns:

bool

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

Implements: ICollection<TableGridRow>.Contains(TableGridRow)

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

C#
public void CopyTo(TableGridRow[] array, int arrayIndex)
Parameters:arrayTableGridRow[]

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

arrayIndexint

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

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

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

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

IEnumerator<TableGridRow>

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

Implements: IEnumerable<TableGridRow>.GetEnumerator()

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

C#
public bool Remove(TableGridRow item)
Parameters:itemTableGridRow

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)

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

C#
public override string ToString()
Returns:

string

A string that represents the current TableGridRowCollection.

Overrides: object.ToString()