SelectionPattern 类

定义

表示一个控件,该控件充当可选子项集合的容器。Represents a control that acts as a container for a collection of selectable child items. 此元素的子级支持 SelectionItemPatternThe children of this element support the SelectionItemPattern.

public ref class SelectionPattern : System::Windows::Automation::BasePattern
public class SelectionPattern : System.Windows.Automation.BasePattern
type SelectionPattern = class
    inherit BasePattern
Public Class SelectionPattern
Inherits BasePattern
继承
SelectionPattern

注解

有关可以实现此控件模式的控件的示例,请参阅 UI 自动化客户端的控件模式映射See Control Pattern Mapping for UI Automation Clients for examples of controls that may implement this control pattern.

字段

CanSelectMultipleProperty

标识 CanSelectMultiple 属性。Identifies the CanSelectMultiple property.

InvalidatedEvent

标识在容器中的选项发生重大更改并需要发送多于 InvalidateLimit 常量所允许的添加和删除事件时引发的事件。Identifies the event that is raised when a selection in a container has changed significantly and requires sending more addition and removal events than the InvalidateLimit constant permits.

IsSelectionRequiredProperty

标识 IsSelectionRequired 属性。Identifies the IsSelectionRequired property.

Pattern

标识 SelectionPattern 控件模式。Identifies the SelectionPattern control pattern.

SelectionProperty

标识用于获取容器中的选定项的属性。Identifies the property that gets the selected items in a container.

属性

Cached

获取此的缓存的 UI 自动化属性值 SelectionPatternGets the cached UI Automation property values for this SelectionPattern.

Current

获取此的当前 UI 自动化属性值 SelectionPatternGets the current UI Automation property values for this SelectionPattern.

方法

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于

另请参阅