Export (0) Print
Expand All

Automation Class

Contains methods and fields for UI Automation client applications.


Namespace:  System.Windows.Automation
Assembly:  UIAutomationClient (in UIAutomationClient.dll)

public static class Automation

The Automation type exposes the following members.

Public methodStatic memberAddAutomationEventHandlerRegisters a method that handles UI Automation events.
Public methodStatic memberAddAutomationFocusChangedEventHandlerRegisters a method that will handle focus-changed events.
Public methodStatic memberAddAutomationPropertyChangedEventHandlerRegisters a method that will handle property-changed events.
Public methodStatic memberAddStructureChangedEventHandlerRegisters the method that will handle structure-changed events.
Public methodStatic memberCompare(AutomationElement, AutomationElement)Compares two UI Automation elements, returning true if both refer to the same UI element.
Public methodStatic memberCompare(Int32[], Int32[])Compares two integer arrays containing run-time identifiers (IDs) to determine whether their content is the same.
Public methodStatic memberPatternNameRetrieves the name of the specified control pattern.
Public methodStatic memberPropertyNameRetrieves the name of the specified UI Automation property.
Public methodStatic memberRemoveAllEventHandlersRemoves all registered UI Automation event handlers.
Public methodStatic memberRemoveAutomationEventHandlerRemoves the specified UI Automation event handler.
Public methodStatic memberRemoveAutomationFocusChangedEventHandlerRemoves the specified focus-changed event handler.
Public methodStatic memberRemoveAutomationPropertyChangedEventHandlerRemoves the specified property-changed event handler.
Public methodStatic memberRemoveStructureChangedEventHandlerRemoves the specified structure-changed event handler.

Public fieldStatic memberContentViewConditionRepresents a predefined view of the UI Automation tree that includes only UI Automation elements that can contain content.
Public fieldStatic memberControlViewConditionRepresents a predefined view of the UI Automation tree that includes only UI Automation elements that are controls.
Public fieldStatic memberRawViewConditionRepresents a predefined view of the UI Automation tree that includes all UI Automation elements.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
© 2015 Microsoft