AccessibleObject.GetSelected メソッド
定義
現在選択されている子を取得します。Retrieves the currently selected child.
public:
virtual System::Windows::Forms::AccessibleObject ^ GetSelected();
public virtual System.Windows.Forms.AccessibleObject? GetSelected ();
public virtual System.Windows.Forms.AccessibleObject GetSelected ();
abstract member GetSelected : unit -> System.Windows.Forms.AccessibleObject
override this.GetSelected : unit -> System.Windows.Forms.AccessibleObject
Public Overridable Function GetSelected () As AccessibleObject
戻り値
現在選択されている子を表す AccessibleObject。An AccessibleObject that represents the currently selected child. オブジェクト自体が選択されている場合は、呼び出し元のオブジェクトを返します。This method returns the calling object if the object itself is selected. 現在選択されている子がなく、オブジェクト自体がフォーカスを受け取っていない場合は、null
を返します。Returns null
if is no child is currently selected and the object itself does not have focus.
例外
選択されている子を取得できません。The selected child cannot be retrieved.
注意 (継承者)
選択可能なすべてのオブジェクトは、このプロパティをサポートする必要があります。All objects that can be selected should support this property.