DataGridViewRow.DataGridViewRowAccessibleObject.GetFocused DataGridViewRow.DataGridViewRowAccessibleObject.GetFocused DataGridViewRow.DataGridViewRowAccessibleObject.GetFocused DataGridViewRow.DataGridViewRowAccessibleObject.GetFocused Method

定义

返回具有键盘焦点的辅助性对象。Returns the accessible object that has keyboard focus.

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

返回

如果由 DataGridViewCell.DataGridViewCellAccessibleObject 属性指示的单元格具有键盘焦点并且位于当前 CurrentCell 中,则为 DataGridViewRow;否则为 nullA DataGridViewCell.DataGridViewCellAccessibleObject if the cell indicated by the CurrentCell property has keyboard focus and is in the current DataGridViewRow; otherwise, null.

异常

适用于

另请参阅