DataGridViewRow.DataGridViewRowAccessibleObject.GetFocused 方法

定义

返回具有键盘焦点的辅助性对象。

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

返回

如果由 DataGridViewCell.DataGridViewCellAccessibleObject 属性指示的单元格具有键盘焦点并且位于当前 CurrentCell 中,则为 DataGridViewRow;否则为 null

例外

Owner 属性的值为 null

适用于

另请参阅