GridTableStylesCollection::Item Property (Int32)
.NET Framework (current version)
Gets the DataGridTableStyle specified by index.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public: property DataGridTableStyle^ default[ int index ] { DataGridTableStyle^ get(int index); }
Parameters
- index
-
Type:
System::Int32
The index of the DataGridTableStyle to get.
Property Value
Type: System.Windows.Forms::DataGridTableStyle^The DataGridTableStyle at the specified index.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | No item exists at the specified index. |
The following code example returns a DataGridTableStyle from the GridTableStylesCollection by passing an index to the Item property.
.NET Framework
Available since 1.1
Available since 1.1
Show: