Class
VisualRowsCollection

Represents a collection of visual row elements.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

cs-api-definition
public class VisualRowsCollection : IEnumerable

Inheritance: objectVisualRowsCollection

Implements: IEnumerable

Constructors

VisualRowsCollection(RowsContainerElement)

Initializes a new instance of the VisualRowsCollection class.

Declaration

cs-api-definition
public VisualRowsCollection(RowsContainerElement container)

Parameters

container

RowsContainerElement

The container.

Properties

Count

Gets the number of elements contained in the ICollection<T>.

Declaration

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

Property Value

int

The number of elements contained in the ICollection<T>.

IsReadOnly

Gets a value indicating whether the ICollection<T> is read-only.

Declaration

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

Property Value

bool

true if the ICollection<T> is read-only; otherwise, false.

this[int]

Gets or sets the GridRowElement at the specified index.

Declaration

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

Parameters

index

int

Property Value

GridRowElement

Methods

Add(GridRowElement)

Adds the specified item.

Declaration

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

Parameters

item

GridRowElement

The item.

Clear()

Removes all items from the ICollection<T>.

Declaration

cs-api-definition
public void Clear()

Exceptions

NotSupportedException

The ICollection<T> is read-only.

Contains(GridRowElement)

Determines whether the specified row element is contained in the collection.

Declaration

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

Parameters

item

GridRowElement

The item.

Returns

bool

CopyTo(GridRowElement[], int)

Copies to the specific array starting from the index.

Declaration

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

Parameters

array

GridRowElement[]

The array.

arrayIndex

int

Index of the array.

GetEnumerator()

Returns an enumerator that iterates through the collection.

Declaration

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

Returns

IEnumerator<GridRowElement>

A IEnumerator<T> that can be used to iterate through the collection.

IndexOf(GridRowElement)

Returns the index of specific row element.

Declaration

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

Parameters

item

GridRowElement

The item.

Returns

int

Insert(int, GridRowElement)

Inserts the row element at the specified index.

Declaration

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

Parameters

index

int

The index.

item

GridRowElement

The item.

Remove(GridRowElement)

Removes the specified item.

Declaration

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

Parameters

item

GridRowElement

The item.

Returns

bool

RemoveAt(int)

Removes the IList<T> item at the specified index.

Declaration

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

Parameters

index

int

The zero-based index of the item to remove.

Exceptions

ArgumentOutOfRangeException

index is not a valid index in the IList<T>.

NotSupportedException

The IList<T> is read-only.