Automation Automation Automation 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
AutomationAutomationAutomationAutomation

Fields

ContentViewCondition ContentViewCondition ContentViewCondition ContentViewCondition

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

ControlViewCondition ControlViewCondition ControlViewCondition ControlViewCondition

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

RawViewCondition RawViewCondition RawViewCondition RawViewCondition

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

Methods

AddAutomationEventHandler(AutomationEvent, AutomationElement, TreeScope, AutomationEventHandler) AddAutomationEventHandler(AutomationEvent, AutomationElement, TreeScope, AutomationEventHandler) AddAutomationEventHandler(AutomationEvent, AutomationElement, TreeScope, AutomationEventHandler) AddAutomationEventHandler(AutomationEvent, AutomationElement, TreeScope, AutomationEventHandler)

Registers a method that handles UI Automation events.

AddAutomationFocusChangedEventHandler(AutomationFocusChangedEventHandler) AddAutomationFocusChangedEventHandler(AutomationFocusChangedEventHandler) AddAutomationFocusChangedEventHandler(AutomationFocusChangedEventHandler) AddAutomationFocusChangedEventHandler(AutomationFocusChangedEventHandler)

Registers a method that will handle focus-changed events.

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

Registers a method that will handle property-changed events.

AddStructureChangedEventHandler(AutomationElement, TreeScope, StructureChangedEventHandler) AddStructureChangedEventHandler(AutomationElement, TreeScope, StructureChangedEventHandler) AddStructureChangedEventHandler(AutomationElement, TreeScope, StructureChangedEventHandler) AddStructureChangedEventHandler(AutomationElement, TreeScope, StructureChangedEventHandler)

Registers the method that will handle structure-changed events.

Compare(Int32[], Int32[]) Compare(Int32[], Int32[]) Compare(Int32[], Int32[]) Compare(Int32[], Int32[])

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

Compare(AutomationElement, AutomationElement) Compare(AutomationElement, AutomationElement) Compare(AutomationElement, AutomationElement) Compare(AutomationElement, AutomationElement)

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

PatternName(AutomationPattern) PatternName(AutomationPattern) PatternName(AutomationPattern) PatternName(AutomationPattern)

Retrieves the name of the specified control pattern.

PropertyName(AutomationProperty) PropertyName(AutomationProperty) PropertyName(AutomationProperty) PropertyName(AutomationProperty)

Retrieves the name of the specified UI Automation property.

RemoveAllEventHandlers() RemoveAllEventHandlers() RemoveAllEventHandlers() RemoveAllEventHandlers()

Removes all registered UI Automation event handlers.

RemoveAutomationEventHandler(AutomationEvent, AutomationElement, AutomationEventHandler) RemoveAutomationEventHandler(AutomationEvent, AutomationElement, AutomationEventHandler) RemoveAutomationEventHandler(AutomationEvent, AutomationElement, AutomationEventHandler) RemoveAutomationEventHandler(AutomationEvent, AutomationElement, AutomationEventHandler)

Removes the specified UI Automation event handler.

RemoveAutomationFocusChangedEventHandler(AutomationFocusChangedEventHandler) RemoveAutomationFocusChangedEventHandler(AutomationFocusChangedEventHandler) RemoveAutomationFocusChangedEventHandler(AutomationFocusChangedEventHandler) RemoveAutomationFocusChangedEventHandler(AutomationFocusChangedEventHandler)

Removes the specified focus-changed event handler.

RemoveAutomationPropertyChangedEventHandler(AutomationElement, AutomationPropertyChangedEventHandler) RemoveAutomationPropertyChangedEventHandler(AutomationElement, AutomationPropertyChangedEventHandler) RemoveAutomationPropertyChangedEventHandler(AutomationElement, AutomationPropertyChangedEventHandler) RemoveAutomationPropertyChangedEventHandler(AutomationElement, AutomationPropertyChangedEventHandler)

Removes the specified property-changed event handler.

RemoveStructureChangedEventHandler(AutomationElement, StructureChangedEventHandler) RemoveStructureChangedEventHandler(AutomationElement, StructureChangedEventHandler) RemoveStructureChangedEventHandler(AutomationElement, StructureChangedEventHandler) RemoveStructureChangedEventHandler(AutomationElement, StructureChangedEventHandler)

Removes the specified structure-changed event handler.

Applies to