共用方式為


DataGridView.DataGridViewAccessibleObject.GetFocused 方法

定義

傳回具有鍵盤焦點的 DataGridViewCell 之可存取物件。

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

傳回

AccessibleObject,指定具有目前焦點的 DataGridViewCell;如果 DataGridView 沒有焦點,則為 null

適用於

另請參閱