Export (0) Print
Expand All

AutomationElement Members

Represents a UI Automation element in the UI Automation tree, and contains values used as identifiers by UI Automation client applications. This class cannot be inherited.

The following tables list the members exposed by the AutomationElement type.

  Name Description
Public field Static AcceleratorKeyProperty Identifies the AcceleratorKey property.
Public field Static AccessKeyProperty Identifies the AccessKey property.
Public field Static AsyncContentLoadedEvent Identifies an event raised during asynchronous content-loading.
Public field Static AutomationFocusChangedEvent Identifies an event that is raised when the focus has changed.
Public field Static AutomationIdProperty Identifies the AutomationId property, which is used to identify elements.
Public field Static AutomationPropertyChangedEvent Identifies a property-changed event.
Public field Static BoundingRectangleProperty Identifies the BoundingRectangle property.
Public field Static ClassNameProperty Identifies the ClassName property.
Public field Static ClickablePointProperty Identifies the clickable point property.
Public field Static ControlTypeProperty Identifies the ControlType property.
Public field Static CultureProperty Identifies the culture property.
Public field Static FrameworkIdProperty Identifies the FrameworkId property.
Public field Static HasKeyboardFocusProperty Identifies the HasKeyboardFocus property.
Public field Static HelpTextProperty Identifies the HelpText property.
Public field Static IsContentElementProperty Identifies the IsContentElement property.
Public field Static IsControlElementProperty Identifies the IsControlElement property.
Public field Static IsDockPatternAvailableProperty Identifies the property that indicates whether the DockPattern control pattern is available on this AutomationElement.
Public field Static IsEnabledProperty Identifies the IsEnabled property, which specifies whether the user interface (UI) item referenced by the AutomationElement is enabled.
Public field Static IsExpandCollapsePatternAvailableProperty Identifies the property that indicates whether the ExpandCollapsePattern control pattern is available on this AutomationElement.
Public field Static IsGridItemPatternAvailableProperty Identifies the property that indicates whether the GridItemPattern control pattern is available on this AutomationElement.
Public field Static IsGridPatternAvailableProperty Identifies the property that indicates whether the GridPattern control pattern is available on this AutomationElement.
Public field Static IsInvokePatternAvailableProperty Identifies the property that indicates whether the InvokePattern control pattern is available on this AutomationElement.
Public field Static IsKeyboardFocusableProperty Identifies the IsKeyboardFocusable property.
Public field Static IsMultipleViewPatternAvailableProperty Identifies the property that indicates whether the MultipleViewPattern control pattern is available on this AutomationElement.
Public field Static IsOffscreenProperty Identifies the IsOffscreen property, which indicates whether the user interface (UI) item is visible on the screen.
Public field Static IsPasswordProperty Identifies the IsPassword property.
Public field Static IsRangeValuePatternAvailableProperty Identifies the property that indicates whether the RangeValuePattern control pattern is available on this AutomationElement.
Public field Static IsRequiredForFormProperty Identifies the IsRequiredForForm property.
Public field Static IsScrollItemPatternAvailableProperty Identifies the property that indicates whether the ScrollItemPattern control pattern is available for this AutomationElement.
Public field Static IsScrollPatternAvailableProperty Identifies the property that indicates whether the ScrollPattern control pattern is available on this AutomationElement.
Public field Static IsSelectionItemPatternAvailableProperty Identifies the property that indicates whether the SelectionItemPattern control pattern is available on this AutomationElement.
Public field Static IsSelectionPatternAvailableProperty Identifies the property that indicates whether the SelectionPattern control pattern is available on this AutomationElement.
Public field Static IsTableItemPatternAvailableProperty Identifies the property that indicates whether the TableItemPattern control pattern is available on this AutomationElement.
Public field Static IsTablePatternAvailableProperty Identifies the property that indicates whether the TablePattern control pattern is available on this AutomationElement.
Public field Static IsTextPatternAvailableProperty Identifies the property that indicates whether the TextPattern control pattern is available on this AutomationElement.
Public field Static IsTogglePatternAvailableProperty Identifies the property that indicates whether the TogglePattern control pattern is available on this AutomationElement.
Public field Static IsTransformPatternAvailableProperty Identifies the property that indicates whether the TransformPattern control pattern is available on this AutomationElement.
Public field Static IsValuePatternAvailableProperty Identifies the property that indicates whether the ValuePattern control pattern is available on this AutomationElement.
Public field Static IsWindowPatternAvailableProperty Identifies the property that indicates whether the WindowPattern control pattern is available on this AutomationElement.
Public field Static ItemStatusProperty Identifies the ItemStatus property, which specifies the status of the visual representation of a complex item.
Public field Static ItemTypeProperty Identifies the ItemType property.
Public field Static LabeledByProperty Identifies the LabeledBy property, which identifies the label associated with a control.
Public field Static LayoutInvalidatedEvent Identifies the event that is raised when the layout is invalidated.
Public field Static LocalizedControlTypeProperty Identifies the LocalizedControlType property in the local language.
Public field Static MenuClosedEvent Identifies the event that is raised when a menu is closed.
Public field Static MenuOpenedEvent Identifies the event that is raised when a menu is opened.
Public field Static NameProperty Identifies the Name property.
Public field Static NativeWindowHandleProperty Identifies the NativeWindowHandle property.
Public field Static NotSupported Indicates that a property is not supported.
Public field Static OrientationProperty Identifies the Orientation property.
Public field Static ProcessIdProperty Identifies the ProcessId property.
Public field Static RuntimeIdProperty Identifies the property that contains the runtime identifier of the element.
Public field Static StructureChangedEvent Identifies the event that is raised when the UI Automation tree structure is changed.
Public field Static ToolTipClosedEvent Identifies the event that is raised when a tooltip is closed.
Public field Static ToolTipOpenedEvent Identifies the event that is raised when a tooltip is opened.
Top

  Name Description
Public property Cached Gets the cached UI Automation property values for this AutomationElement object.
Public property CachedChildren Gets the cached child elements of this AutomationElement.
Public property CachedParent Gets the cached parent of this AutomationElement.
Public property Current Gets the current property values of the AutomationElement.
Public property Static FocusedElement Gets the AutomationElement that currently has focus.
Public property Static RootElement Gets the root AutomationElement for the current desktop.
Top

(see also Protected Methods )
  Name Description
Public method Equals Overloaded. Overridden.  
Public method FindAll Returns all AutomationElement objects that satisfy the specified condition.
Public method FindFirst Returns the first child or descendant element that matches the specified condition.
Public method Static FromHandle Retrieves a new AutomationElement object for the user interface (UI) item referenced by the specified window handle.
Public method Static FromLocalProvider Retrieves a new AutomationElement object from a local IRawElementProviderSimple implementation.
Public method Static FromPoint Retrieves a new AutomationElement object for the user interface (UI) item at specified point on the desktop.
Public method GetCachedPattern Retrieves the specified pattern from the cache of this AutomationElement.
Public method GetCachedPropertyValue Overloaded. Retrieves the cached value of the specified property from an AutomationElement.
Public method GetClickablePoint Retrieves a point on the AutomationElement that can be clicked.
Public method GetCurrentPattern Retrieves the specified pattern object on this AutomationElement.
Public method GetCurrentPropertyValue Overloaded. Retrieves the current value of the specified property from an AutomationElement.
Public method GetHashCode Overridden. Retrieves the hash code for this AutomationElement.
Public method GetRuntimeId Retrieves the unique identifier assigned to the user interface (UI) item.
Public method GetSupportedPatterns Retrieves the control patterns that this AutomationElement supports.
Public method GetSupportedProperties Retrieves the identifiers of properties supported by the element.
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method GetUpdatedCache Retrieves a new AutomationElement with an updated cache.
Public method Static op_Equality Returns a value indicating whether the specified AutomationElement objects refer to the same user interface (UI) element.
Public method Static op_Inequality Returns a value indicating whether the specified AutomationElement objects refer to different user interface (UI) elements.
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method SetFocus Sets focus on the AutomationElement.
Public method ToString  Returns a String that represents the current Object. (inherited from Object)
Public method TryGetCachedPattern Retrieves a control pattern from the cache.
Public method TryGetClickablePoint Retrieves a point within the element that can be clicked.
Public method TryGetCurrentPattern Retrieves an object that implements a control pattern.
Top

  Name Description
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Top

Community Additions

ADD
Show:
© 2014 Microsoft