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

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

C#
public class GridViewColumnValuesCollection : IList, ICollection, IEnumerable

Inheritance: objectGridViewColumnValuesCollection

Implements: ICollectionIEnumerableIList

Constructors

Initializes a new instance of the GridViewColumnValuesCollection class.

C#
public GridViewColumnValuesCollection()

Properties

Gets the number of elements contained in the ICollection.

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

The number of elements contained in the ICollection.

Implements: ICollection.Count

Gets or sets the object at the specified index.

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

Implements: IList.this[int]

Methods

Adds an item to the IList.

C#
public int Add(object value)
Parameters:valueobject

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)

Removes all items from the IList.

C#
public void Clear()
Exceptions:

NotSupportedException

The IList is read-only.

Implements: IList.Clear()

Determines whether the IList contains a specific value.

C#
public bool Contains(object value)
Parameters:valueobject

The object to locate in the IList.

Returns:

bool

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

Implements: IList.Contains(object)

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

C#
public void CopyTo(Array array, int index)
Parameters:arrayArray

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

indexint

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)

Returns an enumerator that iterates through a collection.

C#
public IEnumerator GetEnumerator()
Returns:

IEnumerator

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

Implements: IEnumerable.GetEnumerator()

Determines the index of a specific item in the IList.

C#
public int IndexOf(object value)
Parameters:valueobject

The object to locate in the IList.

Returns:

int

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

Implements: IList.IndexOf(object)

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

C#
public void Remove(object value)
Parameters:valueobject

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)

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

NotSupportedException

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

Implements: IList.RemoveAt(int)