This documentation is archived and is not being maintained.
AutomationElement Class
Visual Studio 2010
Represents a UI Automation element in the UI Automation tree, and contains values used as identifiers by UI Automation client applications.
Assembly: UIAutomationClient (in UIAutomationClient.dll)
The AutomationElement type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Cached | Gets the cached UI Automation property values for this AutomationElement object. |
![]() | CachedChildren | Gets the cached child elements of this AutomationElement. |
![]() | CachedParent | Gets the cached parent of this AutomationElement. |
![]() | Current | Gets the current property values of the AutomationElement. |
![]() ![]() | FocusedElement | Gets the AutomationElement that currently has focus. |
![]() ![]() | RootElement | Gets the root AutomationElement for the current desktop. |
| Name | Description | |
|---|---|---|
![]() | Equals | Determines whether the specified AutomationElement has the same value as this AutomationElement. (Overrides Object::Equals(Object).) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | FindAll | Returns all AutomationElement objects that satisfy the specified condition. |
![]() | FindFirst | Returns the first child or descendant element that matches the specified condition. |
![]() ![]() | FromHandle | Retrieves a new AutomationElement object for the user interface (UI) item referenced by the specified window handle. |
![]() ![]() | FromLocalProvider | Retrieves a new AutomationElement object from a local IRawElementProviderSimple implementation. |
![]() ![]() | FromPoint | Retrieves a new AutomationElement object for the user interface (UI) item at specified point on the desktop. |
![]() | GetCachedPattern | Retrieves the specified pattern from the cache of this AutomationElement. |
![]() | GetCachedPropertyValue(AutomationProperty) | Retrieves the value of the specified property from the cache of this AutomationElement. An appropriate default value for the property type is returned for properties not explicitly supported by the target user interface (UI) element. |
![]() | GetCachedPropertyValue(AutomationProperty, Boolean) | Retrieves the value of the specified property from the cache of this AutomationElement, optionally ignoring any default property. |
![]() | GetClickablePoint | Retrieves a point on the AutomationElement that can be clicked. |
![]() | GetCurrentPattern | Retrieves the specified pattern object on this AutomationElement. |
![]() | GetCurrentPropertyValue(AutomationProperty) | Retrieves the value of the specified property on this AutomationElement. An appropriate default value for the property type is returned for properties not explicitly supported by the target user interface (UI) element. |
![]() | GetCurrentPropertyValue(AutomationProperty, Boolean) | Retrieves the value of the specified property on this AutomationElement, optionally ignoring any default property. |
![]() | GetHashCode | Retrieves the hash code for this AutomationElement. (Overrides Object::GetHashCode().) |
![]() | GetRuntimeId | Retrieves the unique identifier assigned to the user interface (UI) item. |
![]() | GetSupportedPatterns | Retrieves the control patterns that this AutomationElement supports. |
![]() | GetSupportedProperties | Retrieves the identifiers of properties supported by the element. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | GetUpdatedCache | Retrieves a new AutomationElement with an updated cache. |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | SetFocus | Sets focus on the AutomationElement. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | TryGetCachedPattern | Retrieves a control pattern from the cache. |
![]() | TryGetClickablePoint | Retrieves a point within the element that can be clicked. |
![]() | TryGetCurrentPattern | Retrieves an object that implements a control pattern. |
| Name | Description | |
|---|---|---|
![]() ![]() | Equality | Returns a value indicating whether the specified AutomationElement objects refer to the same user interface (UI) element. |
![]() ![]() | Inequality | Returns a value indicating whether the specified AutomationElement objects refer to different user interface (UI) elements. |
| Name | Description | |
|---|---|---|
![]() ![]() | AcceleratorKeyProperty | Identifies the AcceleratorKey property. |
![]() ![]() | AccessKeyProperty | Identifies the AccessKey property. |
![]() ![]() | AsyncContentLoadedEvent | Identifies an event raised during asynchronous content-loading. |
![]() ![]() | AutomationFocusChangedEvent | Identifies an event that is raised when the focus has changed. |
![]() ![]() | AutomationIdProperty | Identifies the AutomationId property, which is used to identify elements. |
![]() ![]() | AutomationPropertyChangedEvent | Identifies a property-changed event. |
![]() ![]() | BoundingRectangleProperty | Identifies the BoundingRectangle property. |
![]() ![]() | ClassNameProperty | Identifies the ClassName property. |
![]() ![]() | ClickablePointProperty | Identifies the clickable point property. |
![]() ![]() | ControlTypeProperty | Identifies the ControlType property. |
![]() ![]() | CultureProperty | Identifies the culture property. |
![]() ![]() | FrameworkIdProperty | Identifies the FrameworkId property. |
![]() ![]() | HasKeyboardFocusProperty | Identifies the HasKeyboardFocus property. |
![]() ![]() | HelpTextProperty | Identifies the HelpText property. |
![]() ![]() | IsContentElementProperty | Identifies the IsContentElement property. |
![]() ![]() | IsControlElementProperty | Identifies the IsControlElement property. |
![]() ![]() | IsDockPatternAvailableProperty | Identifies the property that indicates whether the DockPattern control pattern is available on this AutomationElement. |
![]() ![]() | IsEnabledProperty | Identifies the IsEnabled property, which specifies whether the user interface (UI) item referenced by the AutomationElement is enabled. |
![]() ![]() | IsExpandCollapsePatternAvailableProperty | Identifies the property that indicates whether the ExpandCollapsePattern control pattern is available on this AutomationElement. |
![]() ![]() | IsGridItemPatternAvailableProperty | Identifies the property that indicates whether the GridItemPattern control pattern is available on this AutomationElement. |
![]() ![]() | IsGridPatternAvailableProperty | Identifies the property that indicates whether the GridPattern control pattern is available on this AutomationElement. |
![]() ![]() | IsInvokePatternAvailableProperty | Identifies the property that indicates whether the InvokePattern control pattern is available on this AutomationElement. |
![]() ![]() | IsItemContainerPatternAvailableProperty | |
![]() ![]() | IsKeyboardFocusableProperty | Identifies the IsKeyboardFocusable property. |
![]() ![]() | IsMultipleViewPatternAvailableProperty | Identifies the property that indicates whether the MultipleViewPattern control pattern is available on this AutomationElement. |
![]() ![]() | IsOffscreenProperty | Identifies the IsOffscreen property, which indicates whether the user interface (UI) item is visible on the screen. |
![]() ![]() | IsPasswordProperty | Identifies the IsPassword property. |
![]() ![]() | IsRangeValuePatternAvailableProperty | Identifies the property that indicates whether the RangeValuePattern control pattern is available on this AutomationElement. |
![]() ![]() | IsRequiredForFormProperty | Identifies the IsRequiredForForm property. |
![]() ![]() | IsScrollItemPatternAvailableProperty | Identifies the property that indicates whether the ScrollItemPattern control pattern is available for this AutomationElement. |
![]() ![]() | IsScrollPatternAvailableProperty | Identifies the property that indicates whether the ScrollPattern control pattern is available on this AutomationElement. |
![]() ![]() | IsSelectionItemPatternAvailableProperty | Identifies the property that indicates whether the SelectionItemPattern control pattern is available on this AutomationElement. |
![]() ![]() | IsSelectionPatternAvailableProperty | Identifies the property that indicates whether the SelectionPattern control pattern is available on this AutomationElement. |
![]() ![]() | IsSynchronizedInputPatternAvailableProperty | |
![]() ![]() | IsTableItemPatternAvailableProperty | Identifies the property that indicates whether the TableItemPattern control pattern is available on this AutomationElement. |
![]() ![]() | IsTablePatternAvailableProperty | Identifies the property that indicates whether the TablePattern control pattern is available on this AutomationElement. |
![]() ![]() | IsTextPatternAvailableProperty | Identifies the property that indicates whether the TextPattern control pattern is available on this AutomationElement. |
![]() ![]() | IsTogglePatternAvailableProperty | Identifies the property that indicates whether the TogglePattern control pattern is available on this AutomationElement. |
![]() ![]() | IsTransformPatternAvailableProperty | Identifies the property that indicates whether the TransformPattern control pattern is available on this AutomationElement. |
![]() ![]() | IsValuePatternAvailableProperty | Identifies the property that indicates whether the ValuePattern control pattern is available on this AutomationElement. |
![]() ![]() | IsVirtualizedItemPatternAvailableProperty | |
![]() ![]() | IsWindowPatternAvailableProperty | Identifies the property that indicates whether the WindowPattern control pattern is available on this AutomationElement. |
![]() ![]() | ItemStatusProperty | Identifies the ItemStatus property, which specifies the status of the visual representation of a complex item. |
![]() ![]() | ItemTypeProperty | Identifies the ItemType property. |
![]() ![]() | LabeledByProperty | Identifies the LabeledBy property, which identifies the label associated with a control. |
![]() ![]() | LayoutInvalidatedEvent | Identifies the event that is raised when the layout is invalidated. |
![]() ![]() | LocalizedControlTypeProperty | Identifies the LocalizedControlType property in the local language. |
![]() ![]() | MenuClosedEvent | Identifies the event that is raised when a menu is closed. |
![]() ![]() | MenuOpenedEvent | Identifies the event that is raised when a menu is opened. |
![]() ![]() | NameProperty | Identifies the Name property. |
![]() ![]() | NativeWindowHandleProperty | Identifies the NativeWindowHandle property. |
![]() ![]() | NotSupported | Indicates that a property is not supported. |
![]() ![]() | OrientationProperty | Identifies the Orientation property. |
![]() ![]() | ProcessIdProperty | Identifies the ProcessId property. |
![]() ![]() | RuntimeIdProperty | Identifies the property that contains the runtime identifier of the element. |
![]() ![]() | StructureChangedEvent | Identifies the event that is raised when the UI Automation tree structure is changed. |
![]() ![]() | ToolTipClosedEvent | Identifies the event that is raised when a tooltip is closed. |
![]() ![]() | ToolTipOpenedEvent | Identifies the event that is raised when a tooltip is opened. |
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:
