AccessibleObject.IAccessible.accSelect(Int32, Object) AccessibleObject.IAccessible.accSelect(Int32, Object) AccessibleObject.IAccessible.accSelect(Int32, Object) Method

定义

修改选择内容或移动辅助性对象的键盘焦点。Modifies the selection or moves the keyboard focus of the accessible object. 有关此成员的说明,请参见 accSelect(Int32, Object)For a description of this member, see accSelect(Int32, Object).

 virtual void Accessibility.IAccessible.accSelect(int flagsSelect, System::Object ^ childID) = Accessibility::IAccessible::accSelect;
void IAccessible.accSelect (int flagsSelect, object childID);
Sub accSelect (flagsSelect As Integer, childID As Object) Implements IAccessible.accSelect

参数

flagsSelect
Int32 Int32 Int32

AccessibleSelection 值的按位组合。A bitwise combination of the AccessibleSelection values.

childID
Object Object Object

要对其更改选择操作的辅助性对象的 ID 号。The ID number of the accessible object on which to change the selection. 该参数为 0,则选择该对象;或者,如果该参数为子级 ID,则选择该对象的一个子对象。This parameter is 0 to select the object, or a child ID to select one of the object's child objects.

实现

注解

下面介绍在调用AccessibleSelection Select以执行复杂选择操作时要指定哪些值。The following describes which AccessibleSelection values to specify when calling Select to perform complex selection operations.

操作Operation 标志组合Flag Combination
模拟单击To simulate a click TakeFocusTakeSelectionTakeFocus OR TakeSelection
通过模拟 CTRL + 单击来选择目标项To select a target item by simulating CTRL+click TakeFocusAddSelectionTakeFocus OR AddSelection
通过模拟 CTRL + 单击取消选择目标项To cancel selection of a target item by simulating CTRL+click TakeFocusRemoveSelectionTakeFocus OR RemoveSelection
模拟 SHIFT + 单击To simulate SHIFT+click TakeFocusExtendSelectionTakeFocus OR ExtendSelection
选择对象范围并将焦点放在最后一个对象上To select a range of objects and put focus on the last object TakeFocus起始对象上指定以设置选择定位点。Specify TakeFocus on the starting object to set the selection anchor. 然后再次调用 Select, 并TakeFocusExtendSelection最后一个对象上指定或。Then call Select again and specify TakeFocus OR ExtendSelection on the last object.
取消选择所有对象To deselect all objects TakeSelection任何对象指定。Specify TakeSelection on any object. 此标志取消选择除了刚选择的对象之外的所有选择的对象。This flag deselects all selected objects except the one just selected. 然后再次调用 Select, 并RemoveSelection对同一对象指定。Then call Select again and specify RemoveSelection on the same object.

此成员是显式接口成员的实现。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.

适用于