Automation Class

Definition

Contains methods and fields for UI Automation client applications.

public static 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

제품 버전
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9