AccessibleObject.IAccessible.accSelection AccessibleObject.IAccessible.accSelection AccessibleObject.IAccessible.accSelection Property


获取辅助性对象的选定子对象。Gets the selected child objects of an accessible object. 有关此成员的说明,请参见 accSelectionFor a description of this member, see accSelection.

property System::Object ^ Accessibility::IAccessible::accSelection { System::Object ^ get(); };
object Accessibility.IAccessible.accSelection { get; }
 ReadOnly Property accSelection As Object Implements IAccessible.accSelection


辅助性对象的选定子对象。The selected child objects of an accessible object.



下表描述了IAccessible.accSelection属性返回的对象类型The following table describes the object types that the IAccessible.accSelection property returns

类型Type 说明Description
null 未选择任何子对象。No child objects are selected.
IAccessible 选定的子级辅助性对象。The child accessible object that is selected.
整数integer 标识所选辅助性对象的子 ID。The child ID that identifies the accessible object that is selected. 使用父级IAccessible和子级 ID 访问辅助性对象。Use the parent IAccessible and the child ID to access the accessible object.
IEnumVARIANT 选择的子对象的列表。A list of child objects that are selected.

此成员是显式接口成员的实现。This member is an explicit interface member implementation. 它只能在 AccessibleObject 实例被强制转换为 IAccessible 接口时使用。It can be used only when the AccessibleObject instance is cast to an IAccessible interface.