DataGridView::DataGridViewTopRowAccessibleObject::GetChild Method (Int32)
.NET Framework (current version)
Returns the child accessible object corresponding to the specified index.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- index
-
Type:
System::Int32
The zero-based index of the accessible child.
Return Value
Type: System.Windows.Forms::AccessibleObject^An AccessibleObject that represents the column header at the specified index.
| Exception | Condition |
|---|---|
| InvalidOperationException | The Owner property is not set. |
| ArgumentOutOfRangeException | index is less than 0. |
The order of the child accessible objects that represent a column header corresponds to the DisplayIndex properties of the columns.
.NET Framework
Available since 2.0
Available since 2.0
Show: