DataGridViewColumnCollection.IList.Item[Int32] 属性

定义

获取或设置指定索引处的元素。

property System::Object ^ System::Collections::IList::Item[int] { System::Object ^ get(int index); void set(int index, System::Object ^ value); };
object System.Collections.IList.Item[int index] { get; set; }
member this.System.Collections.IList.Item(int) : obj with get, set
 Property Item(index As Integer) As Object Implements IList.Item

参数

index
Int32

要获取的列的从零开始的索引。

属性值

Object

指定索引处的 DataGridViewColumn

实现

例外

正在设置此属性。

获取此属性时,index 小于零或大于集合中的列数减一。

注解

此成员是显式接口成员的实现。 它只能在 DataGridViewColumnCollection 实例被强制转换为 IList 接口时使用。

此实现不支持设置此属性。

适用于

另请参阅