ISelectionItemProvider 介面

定義

公開方法和屬性,以支援使用者介面自動化用戶端存取可實作 ISelectionProvider 之容器的個別可選取子控制項。Exposes methods and properties to support UI Automation client access to individual, selectable child controls of containers that implement ISelectionProvider.

public interface class ISelectionItemProvider
public interface ISelectionItemProvider
[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.Guid("2acad808-b2d4-452d-a407-91ff1ad167b2")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface ISelectionItemProvider
type ISelectionItemProvider = interface
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Runtime.InteropServices.Guid("2acad808-b2d4-452d-a407-91ff1ad167b2")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type ISelectionItemProvider = interface
Public Interface ISelectionItemProvider
衍生
屬性

備註

在必須支援控制項模式的消費者介面自動化提供者上執行 SelectionItemPatternImplemented on a UI Automation provider that must support the SelectionItemPattern control pattern.

屬性

IsSelected

取得值,表示是否已選取項目。Gets a value that indicates whether an item is selected.

SelectionContainer

取得實作 ISelectionProvider 並作為呼叫物件容器的使用者介面自動化提供者。Gets the UI Automation provider that implements ISelectionProvider and acts as the container for the calling object.

方法

AddToSelection()

將目前的項目加入至選取項目的集合。Adds the current element to the collection of selected items.

RemoveFromSelection()

從選取項目的集合移除目前的項目。Removes the current element from the collection of selected items.

Select()

取消選取任何已選取的項目,然後選取目前的項目。Deselects any selected items and then selects the current element.

適用於

另請參閱