Class
VisualCellsCollection

Represents a collection that stores visual cell elements.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

cs-api-definition
public class VisualCellsCollection : IEnumerable

Inheritance: objectVisualCellsCollection

Implements: IEnumerable

Constructors

VisualCellsCollection(GridRowElement)

Initializes a new instance of the VisualCellsCollection class.

Declaration

cs-api-definition
public VisualCellsCollection(GridRowElement row)

Parameters

row

GridRowElement

The row.

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 GridCellElement at the specified index.

Declaration

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

Parameters

index

int

Property Value

GridCellElement

Methods

Add(GridCellElement)

Adds the specified item.

Declaration

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

Parameters

item

GridCellElement

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(GridCellElement)

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

Declaration

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

Parameters

item

GridCellElement

The item.

Returns

bool

CopyTo(GridCellElement[], int)

Copies to the specific array starting from the index.

Declaration

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

Parameters

array

GridCellElement[]

The array.

arrayIndex

int

Index of the array.

GetEnumerator()

Returns an enumerator that iterates through the collection.

Declaration

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

Returns

IEnumerator<GridCellElement>

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

IndexOf(GridCellElement)

Returns the index of the specified cell element.

Declaration

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

Parameters

item

GridCellElement

The item.

Returns

int

Insert(int, GridCellElement)

Inserts the specified index.

Declaration

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

Parameters

index

int

The index.

item

GridCellElement

The item.

Remove(GridCellElement)

Removes the specified item.

Declaration

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

Parameters

item

GridCellElement

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.