AccessibleObject.GetSelected AccessibleObject.GetSelected AccessibleObject.GetSelected AccessibleObject.GetSelected Method

定义

检索当前选定的子级。Retrieves the currently selected child.

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

返回

表示当前选定子级的 AccessibleObjectAn AccessibleObject that represents the currently selected child. 如果选定了对象本身,则此方法返回调用对象。This method returns the calling object if the object itself is selected. 如果当前没有选定子级且对象本身没有焦点,则返回 nullReturns 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.

适用于