Automation Class

Definition

Contains methods and fields for UI Automation client applications.

public ref class Automation abstract sealed
public static class Automation
type Automation = class
Public Class Automation
Inheritance
Automation

Fields

ContentViewCondition

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

ControlViewCondition

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

RawViewCondition

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

Methods

AddAutomationEventHandler(AutomationEvent, AutomationElement, TreeScope, AutomationEventHandler)

Registers a method that handles UI Automation events.

AddAutomationFocusChangedEventHandler(AutomationFocusChangedEventHandler)

Registers a method that will handle focus-changed events.

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

Registers a method that will handle property-changed events.

AddStructureChangedEventHandler(AutomationElement, TreeScope, StructureChangedEventHandler)

Registers the method that will handle structure-changed events.

Compare(AutomationElement, AutomationElement)

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

Compare(Int32[], Int32[])

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

PatternName(AutomationPattern)

Retrieves the name of the specified control pattern.

PropertyName(AutomationProperty)

Retrieves the name of the specified UI Automation property.

RemoveAllEventHandlers()

Removes all registered UI Automation event handlers.

RemoveAutomationEventHandler(AutomationEvent, AutomationElement, AutomationEventHandler)

Removes the specified UI Automation event handler.

RemoveAutomationFocusChangedEventHandler(AutomationFocusChangedEventHandler)

Removes the specified focus-changed event handler.

RemoveAutomationPropertyChangedEventHandler(AutomationElement, AutomationPropertyChangedEventHandler)

Removes the specified property-changed event handler.

RemoveStructureChangedEventHandler(AutomationElement, StructureChangedEventHandler)

Removes the specified structure-changed event handler.

Applies to