DataGridView::DataGridViewAccessibleObject::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:
virtual AccessibleObject^ GetChild(
	int index
) override

Parameters

index
Type: System::Int32

The zero-based index of the child accessible object.

Return Value

Type: System.Windows.Forms::AccessibleObject^

An AccessibleObject that represents the child accessible object corresponding to the specified index.

The GetChild method returns an accessible object for the row of DataGridViewColumnHeaderCell objects when ColumnHeadersVisible is true and index is 0. If ColumnHeadersVisible is false and index is 0, GetChild returns an accessible object for the first DataGridViewRow.

.NET Framework
Available since 2.0
Return to top
Show: