DataGridView.DataGridViewAccessibleObject.GetFocused Method

Definition

Returns the accessible object of the DataGridViewCell that has the keyboard focus.

public:
 override System::Windows::Forms::AccessibleObject ^ GetFocused();
public override System.Windows.Forms.AccessibleObject GetFocused ();
public override System.Windows.Forms.AccessibleObject? GetFocused ();
override this.GetFocused : unit -> System.Windows.Forms.AccessibleObject
Public Overrides Function GetFocused () As AccessibleObject

Returns

An AccessibleObject that specifies the DataGridViewCell that has the current focus, or null if the DataGridView does not have focus.

Applies to

See also