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

Stores table-grid rows in order, with each entry holding a measured row height.

Definition

Namespace:Telerik.WinForms.Documents.Model

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class TableGridRowCollection : IEnumerable

Inheritance: objectTableGridRowCollection

Implements: IEnumerable

Constructors

Creates an empty collection of table-grid rows.

C#
public TableGridRowCollection()

Properties

Gets the number of grid rows in the collection.

C#
public int Count { get; }

Gets whether the collection can be modified. This collection is always writable.

C#
public bool IsReadOnly { get; }

Gets or replaces the row at the specified zero-based index.

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

The zero-based index of the row.

Property Value:

The row at index.

Exceptions: ArgumentOutOfRangeException

index is outside the collection.

Methods

Appends a row after the current entries.

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

The grid row to append.

Removes all rows from the collection.

C#
public void Clear()

Determines whether the collection contains the specified row.

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

The row to locate.

Returns:

bool

true if the row is present; otherwise, false.

Copies the rows to an array beginning at the specified array index.

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

The destination array.

arrayIndexint

The zero-based destination index at which copying begins.

Returns an enumerator that traverses the rows in grid order.

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

IEnumerator<TableGridRow>

An enumerator over the grid rows.

Removes the first matching row from the collection.

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

The grid row to remove.

Returns:

bool

true if a matching row was removed; otherwise, false.

Returns the row heights, with one height per line in grid order.

C#
public override string ToString()
Returns:

string

A string containing the ordered row heights.

Overrides: object.ToString()