Class
GridViewColumnValuesCollection

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

cs-api-definition
public class GridViewColumnValuesCollection : IList, ICollection, IEnumerable

Inheritance: objectGridViewColumnValuesCollection

Implements: ICollectionIEnumerableIList

Constructors

GridViewColumnValuesCollection()

Initializes a new instance of the GridViewColumnValuesCollection class.

Declaration

cs-api-definition
public GridViewColumnValuesCollection()

Properties

Count

Gets the number of elements contained in the ICollection.

Declaration

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

Property Value

int

The number of elements contained in the ICollection.

Implements ICollection.Count

this[int]

Gets or sets the object at the specified index.

Declaration

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

Parameters

index

int

Property Value

object

Implements IList.this[int]

Methods

Add(object)

Adds an item to the IList.

Declaration

cs-api-definition
public int Add(object value)

Parameters

value

object

The object to add to the IList.

Returns

int

The position into which the new element was inserted, or -1 to indicate that the item was not inserted into the collection,

Exceptions

NotSupportedException

The IList is read-only.-or- The IList has a fixed size.

Implements IList.Add(object)

Clear()

Removes all items from the IList.

Declaration

cs-api-definition
public void Clear()

Exceptions

NotSupportedException

The IList is read-only.

Implements IList.Clear()

Contains(object)

Determines whether the IList contains a specific value.

Declaration

cs-api-definition
public bool Contains(object value)

Parameters

value

object

The object to locate in the IList.

Returns

bool

true if the object is found in the IList; otherwise, false.

Implements IList.Contains(object)

CopyTo(Array, int)

Copies the elements of the ICollection to an Array, starting at a particular Array index.

Declaration

cs-api-definition
public void CopyTo(Array array, int index)

Parameters

array

Array

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

index

int

The zero-based index in array at which copying begins.

Exceptions

ArgumentNullException

array is null.

ArgumentOutOfRangeException

index is less than zero.

ArgumentException

array is multidimensional.-or- The number of elements in the source ICollection is greater than the available space from index to the end of the destination array.-or-The type of the source ICollection cannot be cast automatically to the type of the destination array.

Implements ICollection.CopyTo(Array, int)

GetEnumerator()

Returns an enumerator that iterates through a collection.

Declaration

cs-api-definition
public IEnumerator GetEnumerator()

Returns

IEnumerator

An IEnumerator object that can be used to iterate through the collection.

Implements IEnumerable.GetEnumerator()

IndexOf(object)

Determines the index of a specific item in the IList.

Declaration

cs-api-definition
public int IndexOf(object value)

Parameters

value

object

The object to locate in the IList.

Returns

int

The index of value if found in the list; otherwise, -1.

Implements IList.IndexOf(object)

Remove(object)

Removes the first occurrence of a specific object from the IList.

Declaration

cs-api-definition
public void Remove(object value)

Parameters

value

object

The object to remove from the IList.

Exceptions

NotSupportedException

The IList is read-only.-or- The IList has a fixed size.

Implements IList.Remove(object)

RemoveAt(int)

Removes the IList 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.

NotSupportedException

The IList is read-only.-or- The IList has a fixed size.

Implements IList.RemoveAt(int)