DataGridViewSelectedColumnCollection.Item[Int32] 属性

定义

获取指定索引处的列。Gets the column at the specified index.

public:
 property System::Windows::Forms::DataGridViewColumn ^ default[int] { System::Windows::Forms::DataGridViewColumn ^ get(int index); };
public System.Windows.Forms.DataGridViewColumn this[int index] { get; }
member this.Item(int) : System.Windows.Forms.DataGridViewColumn
Default Public ReadOnly Property Item(index As Integer) As DataGridViewColumn

参数

index
Int32

要从 DataGridViewColumn 中获取的 DataGridViewSelectedColumnCollection 的索引。The index of the DataGridViewColumn to get from the DataGridViewSelectedColumnCollection.

属性值

位于指定索引处的 DataGridViewColumnThe DataGridViewColumn at the specified index.

异常

index 小于 0。index is less than 0.

-or- index 大于或等于集合中的列数。index is equal to or greater than the number of columns in the collection.

适用于

另请参阅