DataGridViewSelectedColumnCollection.IList.Item Property (Int32)

 

This API supports the product infrastructure and is not intended to be used directly from your code.

Gets the element at the specified index.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

object IList.this[
	int index
] { get; set; }

Parameters

index
Type: System.Int32

The index of the element to get from the DataGridViewSelectedColumnCollection.

Property Value

Type: System.Object

The element at the specified index.

Exception Condition
NotSupportedException

The property is set.

ArgumentOutOfRangeException

index is less than 0.

-or-

index is equal to or greater than the number of columns in the collection.

This member is an explicit interface member implementation. It can be used only when the DataGridViewSelectedColumnCollection instance is cast to an IList interface.

.NET Framework
Available since 2.0
Return to top
Show: