ISelectionProvider 接口

定义

公开方法和属性以支持 UI 自动化客户端对控件的访问,这些控件充当用于收集各个可选择的子项的容器。Exposes methods and properties to support UI Automation client access to controls that act as containers for a collection of individual, selectable child items. 此控件的子级必须实现 ISelectionItemProviderThe children of this control must implement ISelectionItemProvider.

public interface class ISelectionProvider
public interface ISelectionProvider
[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.Guid("fb8b03af-3bdf-48d4-bd36-1a65793be168")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface ISelectionProvider
type ISelectionProvider = interface
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Runtime.InteropServices.Guid("fb8b03af-3bdf-48d4-bd36-1a65793be168")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type ISelectionProvider = interface
Public Interface ISelectionProvider
派生
属性

注解

在必须支持控件模式的 UI 自动化提供程序上实现 SelectionPatternImplemented on a UI Automation provider that must support the SelectionPattern control pattern.

属性

CanSelectMultiple

获取一个值,该值指定 UI 自动化提供程序是否允许同时选择多个子元素。Gets a value that specifies whether the UI Automation provider allows more than one child element to be selected concurrently.

IsSelectionRequired

获取一个值,该值指定 UI 自动化提供程序是否要求至少选择一个子元素。Gets a value that specifies whether the UI Automation provider requires at least one child element to be selected.

方法

GetSelection()

检索所选的每个子元素的 UI 自动化提供程序。Retrieves a UI Automation provider for each child element that is selected.

适用于

另请参阅