DataGridView.DataGridViewTopRowAccessibleObject.GetChild Method (Int32)

 

Returns the child accessible object corresponding to the specified index.

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

public override AccessibleObject GetChild(
	int index
)

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
Return to top
Show: