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

Represents a collection that stores visual cell elements.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

C#
public class VisualCellsCollection : IEnumerable

Inheritance: objectVisualCellsCollection

Implements: IEnumerable

Constructors

Initializes a new instance of the VisualCellsCollection class.

C#
public VisualCellsCollection(GridRowElement row)
Parameters:rowGridRowElement

The row.

Properties

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

C#
public int Count { get; }
Property Value:

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

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

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

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

Gets or sets the GridCellElement at the specified index.

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

Methods

Adds the specified item.

C#
public void Add(GridCellElement item)
Parameters:itemGridCellElement

The item.

Removes all items from the ICollection<T>.

C#
public void Clear()
Exceptions:

NotSupportedException

The ICollection<T> is read-only.

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

C#
public bool Contains(GridCellElement item)
Parameters:itemGridCellElement

The item.

Returns:

bool

Copies to the specific array starting from the index.

C#
public void CopyTo(GridCellElement[] array, int arrayIndex)
Parameters:arrayGridCellElement[]

The array.

arrayIndexint

Index of the array.

Returns an enumerator that iterates through the collection.

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

IEnumerator<GridCellElement>

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

Returns the index of the specified cell element.

C#
public int IndexOf(GridCellElement item)
Parameters:itemGridCellElement

The item.

Returns:

int

Inserts the specified index.

C#
public void Insert(int index, GridCellElement item)
Parameters:indexint

The index.

itemGridCellElement

The item.

Removes the specified item.

C#
public bool Remove(GridCellElement item)
Parameters:itemGridCellElement

The item.

Returns:

bool

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

C#
public void RemoveAt(int index)
Parameters:indexint

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.