System.Windows.Automation 命名空间

为 Windows Presentation Foundation (WPF) UI 自动化客户端提供支持。 Provides support for Windows Presentation Foundation (WPF) UI Automation clients.

AndCondition

表示两个或更多 PropertyCondition 对象(必须都符合匹配条件)的组合。Represents a combination of two or more PropertyCondition objects that must both be true for a match.

AsyncContentLoadedEventArgs

AsyncContentLoadedEvent 提供数据。Provides data for a AsyncContentLoadedEvent.

Automation

包含 UI 自动化客户端应用程序的方法和字段。Contains methods and fields for UI Automation client applications.

AutomationElement

表示 UI 自动化树中的一个 UI 自动化元素,并包含由 UI 自动化客户端应用程序用作标识符的值。Represents a UI Automation element in the UI Automation tree, and contains values used as identifiers by UI Automation client applications.

AutomationElementCollection

表示 AutomationElement 对象集合。Represents a collection of AutomationElement objects.

AutomationElementIdentifiers

包含由 UI 自动化提供程序用作标识符的值。Contains values used as identifiers by UI Automation providers.

AutomationEvent

标识 UI 自动化事件。Identifies a UI Automation event.

AutomationEventArgs

为传递给 AutomationEventHandler 委托的 UI 自动化事件提供数据。Provides data for UI Automation events that are passed to an AutomationEventHandler delegate.

AutomationFocusChangedEventArgs

为 focus-changed 事件提供数据。Provides data for a focus-changed event.

AutomationIdentifier

用于标识 UI 自动化中的控件类型、事件、模式、属性和文本特性的类型的基类。Base class for types that identify control types, events, patterns, properties, and text attributes in UI Automation.

AutomationPattern

标识控件模式。Identifies a control pattern.

AutomationProperties

为获取或设置 AutomationPeer 元素实例的相关属性值提供了一种途径。Provides a means of getting or setting the value of the associated properties of the instance of the AutomationPeer element.

AutomationProperty

标识 AutomationElement 的属性。Identifies a property of an AutomationElement.

AutomationPropertyChangedEventArgs

提供有关 property-changed 事件的信息。Provides information about a property-changed event.

AutomationTextAttribute

标识 UI 自动化文本特性。Identifies UI Automation text attributes.

BasePattern

为控件模式类提供基实现。Provides the base implementation for control pattern classes.

CacheRequest

指定在获得 AutomationElement 时,UI 自动化框架缓存的属性和模式。Specifies properties and patterns that the UI Automation framework caches when an AutomationElement is obtained.

ClientSettings

包含使客户端提供程序可用于客户端的方法。Contains methods that make client-side providers available to the client.

Condition

在 UI 自动化目录树中搜索元素时应用于筛选的条件的基类型。Base type for conditions used in filtering when searching for elements in the UI Automation tree.

ControlType

标识用户界面 (UI) 控件的类型。Identifies the type of a user interface (UI) control.

DockPattern

表示在某个停靠容器内公开其停靠属性的控件。Represents controls that expose their dock properties within a docking container.

DockPatternIdentifiers

包含用作 IDockProvider 的标识符的值。Contains values used as identifiers for IDockProvider.

ElementNotAvailableException

包含与异常有关的信息,该异常是在尝试访问与不再可用的某个用户界面部分对应的 UI 自动化元素时引发的。Contains information about the exception that is raised when an attempt is made to access an UI Automation element corresponding to a part of the user interface that is no longer available.

ElementNotEnabledException

包含有关尝试操作一个未启用的控件时所引发的异常的信息。Contains information about the exception that is raised when an attempt is made to manipulate a control that is not enabled.

ExpandCollapsePattern

表示以可视化方式展开显示内容,折叠隐藏内容的控件。Represents controls that visually expand to display content and collapse to hide content.

ExpandCollapsePatternIdentifiers

包含被 IExpandCollapseProvider 用作标识符的值。Contains values used as identifiers by IExpandCollapseProvider.

GridItemPattern

表示支持 GridPattern 的容器的子控件。Represents child controls of containers that support GridPattern.

GridItemPatternIdentifiers

包含被 IGridItemProvider 用作标识符的值。Contains values used as identifiers by IGridItemProvider.

GridPattern

表示充当子元素集合的容器的控件。Represents controls that act as containers for a collection of child elements. 此控件的子级支持 GridItemPattern,并且在可以按行和列进行遍历的二维逻辑坐标系统中进行组织。The children of this control support GridItemPattern and are organized in a two-dimensional logical coordinate system that can be traversed by row and column.

GridPatternIdentifiers

包含被 IGridProvider 用作标识符的值。Contains values used as identifiers by IGridProvider.

InvokePattern

表示用于启动或执行单个明确操作的控件,并且这些控件在激活时不保持其状态。Represents controls that initiate or perform a single, unambiguous action and do not maintain state when activated.

InvokePatternIdentifiers

包含被 IInvokeProvider 用作标识符的值。Contains values used as identifiers by IInvokeProvider.

ItemContainerPattern

表示一个对象,该对象管理项并支持按属性值检索项。Represents an object that manages items and supports retrieving an item by property value.

ItemContainerPatternIdentifiers

包含被 IItemContainerProvider 用作标识符的值。Contains values used as identifiers by IItemContainerProvider.

MultipleViewPattern

表示提供同一组信息或子控件的多种表示方式(并能够在这些表示方式之间切换)的控件。Represents controls that provide, and are able to switch between, multiple representations of the same set of information or child controls.

MultipleViewPatternIdentifiers

包含被 IMultipleViewProvider 用作标识符的值。Contains values used as identifiers by IMultipleViewProvider.

NoClickablePointException

包含与异常有关的信息,该异常是在对没有可单击的点的 UI 自动化元素调用 GetClickablePoint() 时引发的。Contains information about the exception that is raised when GetClickablePoint() is called on a UI Automation element that has no clickable point.

NotCondition

表示一个 Condition,它是指定 Condition 的非值。Represents a Condition that is the negative of a specified Condition.

OrCondition

表示两个或更多条件的组合,如果其中的一个条件为真,则表明存在匹配项。Represents a combination of two or more conditions where a match exists if any one of the conditions is true.

PropertyCondition

表示一个 Condition,它测试属性是否具有指定的值。Represents a Condition that tests whether a property has a specified value.

ProxyAssemblyNotLoadedException

如果在加载包含客户端提供程序的程序集时出现问题,则会引发某种异常,包含有关这种异常的信息。Contains information about an exception that is raised when there is a problem loading an assembly that contains client-side providers.

RangeValuePattern

表示一个控件,可将其设置为范围内的一个值。Represents a control that can be set to a value within a range.

RangeValuePatternIdentifiers

包含用作 IRangeValueProvider 的标识符的值。Contains values used as identifiers for IRangeValueProvider.

ScrollItemPattern

表示支持 ScrollPattern 控件模式的容器的子控件。Represents child controls of containers that support the ScrollPattern control pattern.

ScrollItemPatternIdentifiers

包含被 IScrollItemProvider 用作标识符的值。Contains values used as identifiers by IScrollItemProvider.

ScrollPattern

表示充当子元素集合的可滚动容器的控件。Represents controls that act as scrollable containers for a collection of child elements. 该元素的子级支持 ScrollItemPatternThe children of this element support ScrollItemPattern.

ScrollPatternIdentifiers

包含用作 IScrollProvider 的标识符的值。Contains values used as identifiers for IScrollProvider.

SelectionItemPattern

表示支持 SelectionPattern 的容器控件中的可选子项。Represents selectable child items of container controls that support SelectionPattern.

SelectionItemPatternIdentifiers

包含被 ISelectionItemProvider 用作标识符的值。Contains values used as identifiers by ISelectionItemProvider.

SelectionPattern

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

SelectionPatternIdentifiers

包含用作 ISelectionProvider 的标识符的值。Contains values used as identifiers for ISelectionProvider.

StructureChangedEventArgs

包含有关UI 自动化目录树结构更改后将引发的事件的信息。Contains information about the event that is raised when the UI Automation tree structure has changed.

SynchronizedInputPattern

表示支持同步输入事件的对象。Represents objects that support synchronized input events.

SynchronizedInputPatternIdentifiers

包含被 ISynchronizedInputProvider 用作标识符的值。Contains values used as identifiers by ISynchronizedInputProvider.

TableItemPattern

表示支持 TablePattern 的容器的子控件。Represents the child controls of containers that support TablePattern.

TableItemPatternIdentifiers

包含被 ITableItemProvider 用作标识符的值。Contains values used as identifiers by ITableItemProvider.

TablePattern

表示充当子元素集合的容器的控件。Represents controls that act as containers for a collection of child elements. 此元素的子级支持 TableItemPattern,并且在可以按行和列进行遍历的二维逻辑坐标系统中进行组织。The children of this element support TableItemPattern and are organized in a two-dimensional logical coordinate system that can be traversed by row and column.

TablePatternIdentifiers

包含用作 TablePattern 的标识符的值。Contains values used as identifiers for TablePattern.

TextPattern

表示包含文本的控件。Represents controls that contain text.

TextPatternIdentifiers

包含用作 ITextProvider 的标识符的值。Contains values used as identifiers for ITextProvider.

TogglePattern

表示可以循环通过一组状态并在设置后保持某种状态的控件。Represents a control that can cycle through a set of states and maintain a state once set.

TogglePatternIdentifiers

包含被 IToggleProvider 用作标识符的值。Contains values used as identifiers by IToggleProvider.

TransformPattern

表示可以在二维空间中移动、调整大小或旋转的控件。Represents a control that can be moved, resized, or rotated within a two-dimensional space.

TransformPatternIdentifiers

包含用作 ITransformProvider 的标识符的值。Contains values used as identifiers for ITransformProvider.

TreeWalker

提供用于导航 UI 自动化树的方法和属性。Provides methods and properties used to navigate the UI Automation tree.

ValuePattern

表示一个控件,该控件具有一个不跨越某个范围而且可以表示为一个字符串的内部值。Represents a control that has an intrinsic value that does not span a range and can be represented as a string. 此字符串既可以是可编辑的,也可以是不可编辑的,具体取决于控件及其设置。This string may or may not be editable depending on the control and its settings.

ValuePatternIdentifiers

包含用作 IValueProvider 的标识符的值。Contains values used as identifiers for IValueProvider.

VirtualizedItemPattern

表示容器内已虚拟化并且需要像 UI 自动化元素一样可完全访问的项。Represents items inside containers that are virtualized and need to be made fully accessible as UI Automation elements.

VirtualizedItemPatternIdentifiers

包含被 IVirtualizedItemProvider 用作标识符的值。Contains values used as identifiers by IVirtualizedItemProvider.

WindowClosedEventArgs

包含有关关闭窗口时引发的事件的信息。Contains information about the event that is raised when a window is closed.

WindowPattern

表示一个控件,该控件提供传统图形用户界面 (GUI) 中基于窗口的重要功能。Represents a control that provides fundamental window-based functionality within a traditional graphical user interface (GUI).

WindowPatternIdentifiers

包含被 IWindowProvider 用作标识符的值。Contains values used as identifiers by IWindowProvider.

结构

AutomationElement.AutomationElementInformation

包含由 CachedCurrent 属性使用的属性访问器。Contains the property accessors used by the Cached or Current properties.

ClientSideProviderDescription

描述客户端 UI 自动化提供程序的范围,以便在 UI 自动化客户端应用程序上注册。Describes the scope of a client-side UI Automation provider so that it can be registered with the UI Automation client application.

DockPattern.DockPatternInformation

支持使用 DockPattern 对象的 CurrentCached 访问器访问该对象的属性值。Provides access to the property values of a DockPattern object using its Current or Cached accessors.

ExpandCollapsePattern.ExpandCollapsePatternInformation

支持使用 ExpandCollapsePattern 对象的 CurrentCached 访问器访问该对象的属性值。Provides access to the property values of a ExpandCollapsePattern object using its Current or Cached accessors.

GridItemPattern.GridItemPatternInformation

支持使用 GridItemPattern 对象的 CurrentCached 访问器访问该对象的属性值。Provides access to the property values of a GridItemPattern object using its Current or Cached accessors.

GridPattern.GridPatternInformation

支持使用 GridPattern 对象的 CurrentCached 访问器访问该对象的属性值。Provides access to the property values of a GridPattern object using its Current or Cached accessors.

MultipleViewPattern.MultipleViewPatternInformation

支持使用 MultipleViewPattern 对象的 CurrentCached 访问器访问该对象的属性值。Provides access to the property values of a MultipleViewPattern object using its Current or Cached accessors.

RangeValuePattern.RangeValuePatternInformation

支持使用 RangeValuePattern 对象的 CurrentCached 访问器访问该对象的属性值。Provides access to the property values of a RangeValuePattern object using its Current or Cached accessors.

ScrollPattern.ScrollPatternInformation

支持使用 ScrollPattern 对象的 CurrentCached 访问器访问该对象的属性值。Provides access to the property values of a ScrollPattern object using its Current or Cached accessors.

SelectionItemPattern.SelectionItemPatternInformation

支持使用 SelectionItemPattern 对象的 CurrentCached 访问器访问该对象的属性值。Provides access to the property values of a SelectionItemPattern object using its Current or Cached accessors.

SelectionPattern.SelectionPatternInformation

支持使用 SelectionPattern 对象的 CurrentCached 访问器访问该对象的属性值。Provides access to the property values of a SelectionPattern object using its Current or Cached accessors.

TableItemPattern.TableItemPatternInformation

支持使用 TableItemPattern 对象的 CurrentCached 访问器访问该对象的属性值。Provides access to the property values of a TableItemPattern object using its Current or Cached accessors.

TablePattern.TablePatternInformation

支持使用 TablePattern 对象的 CurrentCached 访问器访问该对象的属性值。Provides access to the property values of a TablePattern object using its Current or Cached accessors.

TogglePattern.TogglePatternInformation

支持使用 TogglePattern 对象的 CurrentCached 访问器访问该对象的属性值。Provides access to the property values of a TogglePattern object using its Current or Cached accessors.

TransformPattern.TransformPatternInformation

支持使用 TransformPattern 对象的 CurrentCached 访问器访问该对象的属性值。Provides access to the property values of a TransformPattern object using its Current or Cached accessors.

ValuePattern.ValuePatternInformation

支持使用 ValuePattern 对象的 CurrentCached 访问器访问该对象的属性值。Provides access to the property values of a ValuePattern object using its Current or Cached accessors.

WindowPattern.WindowPatternInformation

支持使用 WindowPattern 对象的 CurrentCached 访问器访问该对象的属性值。Provides access to the property values of a WindowPattern object using its Current or Cached accessors.

枚举

AsyncContentLoadedState

包含一些值,它们指定要加载到内容元素中的内容的状态。Contains values that specify the state of the content being loaded into a content element.

AutomationElementMode

包含指定返回 UI 自动化元素时所使用的引用类型的值。 这些值在 AutomationElementMode 属性中使用。These values are used in the AutomationElementMode property.

AutomationLiveSetting

描述特定活动区域的通知特征。Describes the notification characteristics of a particular live region.

ClientSideProviderMatchIndicator

包含指定在与 ClientSideProviderDescription 中的类名称匹配时的行为的值。Contains values that specify behavior when matching class names in a ClientSideProviderDescription.

DockPosition

包含指定由 DockPattern 表示的对象在停靠容器内的停靠位置的值。Contains values that specify the dock position of an object, represented by a DockPattern, within a docking container.

ExpandCollapseState

包含用于指定 UI 自动化元素的 ExpandCollapseState 的值。Contains values that specify the ExpandCollapseState of a UI Automation element.

IsOffscreenBehavior

指定如何确定 IsOffscreen() 属性。Specifies how the IsOffscreen() property is determined.

OrientationType

包含指定控件的方向的值。Contains values that specify the orientation of a control.

PropertyConditionFlags

包含一些值,这些值指定如何按照 PropertyCondition 对属性值进行测试。Contains values that specify how a property value is tested in a PropertyCondition.

RowOrColumnMajor

包含指定是否应主要按行或按列读取表中的数据的值。Contains values that specify whether data in a table should be read primarily by row or by column.

ScrollAmount

包含 ScrollPattern 用来指示滚动的方向和距离的值。Contains values used by ScrollPattern to indicate the direction and distance to scroll.

StructureChangeType

包含指定 Microsoft UI 自动化元素树结构中的更改的值。Contains values that specify changes in the structure of the Microsoft UI Automation element tree.

SupportedTextSelection

包含一些值,这些值指定文本提供程序是否支持选择,而且如果支持选择,还指定其支持单个边续的选择还是多个不连续的选择。Contains values that specify whether a text provider supports selection and, if so, whether it supports a single, continuous selection or multiple, disjoint selections.

SynchronizedInputType

包含用于指定同步输入的类型的值。Contains values that specify the type of synchronized input.

ToggleState

包含用于指定 UI 自动化元素的 ToggleState 的值。Contains values that specify the ToggleState of a UI Automation element.

TreeScope

包含指定 UI 自动化目录树内元素的范围的值。Contains values that specify the scope of elements within the UI Automation tree.

WindowInteractionState

包含指定窗口的当前状态的值,以用于用户或编程交互。Contains values that specify the current state of the window for purposes of user or programmatic interaction.

WindowVisualState

包含指定窗口的可视状态的值。Contains values that specify the visual state of a window.

委托

AutomationEventHandler

表示由 UI 自动化客户端应用程序实现的方法,该方法处理由 UI 自动化提供程序引发的事件。Represents the method implemented by the UI Automation client application to handle an event raised by a UI Automation provider.

AutomationFocusChangedEventHandler

表示一个方法,该方法由 UI 自动化客户端应用程序实现以处理焦点更改时由 UI 自动化提供程序引发的事件。Represents the method implemented by the UI Automation client application to handle the event raised by a UI Automation provider when the focus has changed.

AutomationPropertyChangedEventHandler

表示由 UI 自动化客户端应用程序实现的方法,该方法处理在属性更改后由 UI 自动化提供程序引发的事件。Represents the method implemented by the UI Automation client application to handle the event raised by a UI Automation provider when a property has changed.

ClientSideProviderFactoryCallback

表示创建窗口的客户端 UI 自动化提供程序的方法。Represents the method that creates a client-side UI Automation provider for a window.

StructureChangedEventHandler

表示一个由客户端应用程序实现的方法,用于处理 UI 自动化关系树结构发生变化时引起的事件。Represents the method implemented by the client application to handle the event raised when the UI Automation tree structure has changed.