DataGridViewCell::DataGridViewCellAccessibleObject::GetChild Method (Int32)

 

Returns the 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 accessible child corresponding to the specified index.

Exception Condition
InvalidOperationException

The value of the Owner property is null.

The GetChild method returns an AccessibleObject only if the DataGridViewCell that owns the DataGridViewCell::DataGridViewCellAccessibleObject is in edit mode and index is 0.

.NET Framework
Available since 2.0
Return to top
Show: