Automation Class

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Contains methods and fields for UI Automation client applications.

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

System.Object
  System.Windows.Automation.Automation

public static class Automation

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticAddAutomationEventHandler(AutomationEvent, AutomationElement, TreeScope, AutomationEventHandler)

Registers a method that handles UI Automation events.

System_CAPS_pubmethodSystem_CAPS_staticAddAutomationFocusChangedEventHandler(AutomationFocusChangedEventHandler)

Registers a method that will handle focus-changed events.

System_CAPS_pubmethodSystem_CAPS_staticAddAutomationPropertyChangedEventHandler(AutomationElement, TreeScope, AutomationPropertyChangedEventHandler, AutomationProperty[])

Registers a method that will handle property-changed events.

System_CAPS_pubmethodSystem_CAPS_staticAddStructureChangedEventHandler(AutomationElement, TreeScope, StructureChangedEventHandler)

Registers the method that will handle structure-changed events.

System_CAPS_pubmethodSystem_CAPS_staticCompare(AutomationElement, AutomationElement)

Compares two UI Automation elements, returning true if both refer to the same UI element.

System_CAPS_pubmethodSystem_CAPS_staticCompare(Int32[], Int32[])

Compares two integer arrays containing run-time identifiers (IDs) to determine whether their content is the same.

System_CAPS_pubmethodSystem_CAPS_staticPatternName(AutomationPattern)

Retrieves the name of the specified control pattern.

System_CAPS_pubmethodSystem_CAPS_staticPropertyName(AutomationProperty)

Retrieves the name of the specified UI Automation property.

System_CAPS_pubmethodSystem_CAPS_staticRemoveAllEventHandlers()

Removes all registered UI Automation event handlers.

System_CAPS_pubmethodSystem_CAPS_staticRemoveAutomationEventHandler(AutomationEvent, AutomationElement, AutomationEventHandler)

Removes the specified UI Automation event handler.

System_CAPS_pubmethodSystem_CAPS_staticRemoveAutomationFocusChangedEventHandler(AutomationFocusChangedEventHandler)

Removes the specified focus-changed event handler.

System_CAPS_pubmethodSystem_CAPS_staticRemoveAutomationPropertyChangedEventHandler(AutomationElement, AutomationPropertyChangedEventHandler)

Removes the specified property-changed event handler.

System_CAPS_pubmethodSystem_CAPS_staticRemoveStructureChangedEventHandler(AutomationElement, StructureChangedEventHandler)

Removes the specified structure-changed event handler.

NameDescription
System_CAPS_pubfieldSystem_CAPS_staticContentViewCondition

Represents a predefined view of the UI Automation tree that includes only UI Automation elements that can contain content.

System_CAPS_pubfieldSystem_CAPS_staticControlViewCondition

Represents a predefined view of the UI Automation tree that includes only UI Automation elements that are controls.

System_CAPS_pubfieldSystem_CAPS_staticRawViewCondition

Represents a predefined view of the UI Automation tree that includes all UI Automation elements.

.NET Framework
Available since 3.0

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

Return to top
Show: