Export (0) Print
Expand All

AutomationElement.AutomationElementInformation Structure

Contains the property accessors used by the Cached or Current properties.

Namespace:  System.Windows.Automation
Assembly:  UIAutomationClient (in UIAutomationClient.dll)

[<Sealed>]
type AutomationElementInformation =  struct end

The AutomationElement.AutomationElementInformation type exposes the following members.

  NameDescription
Public propertyAcceleratorKeyGets a string containing the accelerator key combinations for the element.
Public propertyAccessKeyGets a string containing the access key character for the element.
Public propertyAutomationIdGets a string containing the UI Automation identifier (ID) for the element.
Public propertyBoundingRectangleGets the coordinates of the rectangle that completely encloses the element.
Public propertyClassNameGets a string containing the class name of the element as assigned by the control developer.
Public propertyControlTypeGets the ControlType of the element.
Public propertyFrameworkIdGets the name of the underlying UI framework.
Public propertyHasKeyboardFocusGets a value that indicates whether the element has keyboard focus.
Public propertyHelpTextGets the help text associated with the element.
Public propertyIsContentElementGets a value that specifies whether the element is a content element.
Public propertyIsControlElementGets a value that indicates whether the element is viewed as a control.
Public propertyIsEnabledGets a value that indicates whether the user interface (UI) item referenced by the UI Automation element is enabled.
Public propertyIsKeyboardFocusableGets a value that indicates whether the UI Automation element can accept keyboard focus.
Public propertyIsOffscreenGets a value that indicates whether the UI Automation element is visible on the screen.
Public propertyIsPasswordGets a value that indicates whether the UI Automation element contains protected content.
Public propertyIsRequiredForFormGets a value that indicates whether the UI Automation element is required to be filled out on a form.
Public propertyItemStatusGets a description of the status of an item within an element.
Public propertyItemTypeGets a description of the type of an item.
Public propertyLabeledByGets the element that contains the text label for this element.
Public propertyLocalizedControlTypeGets a description of the control type.
Public propertyNameGets the name of the element.
Public propertyNativeWindowHandleGets the handle of the element's window.
Public propertyOrientationGets the orientation of the control.
Public propertyProcessIdGets the process identifier (ID) of this element.
Top

  NameDescription
Public methodEqualsIndicates whether this instance and a specified object are equal. (Inherited from ValueType.)
Public methodGetHashCodeReturns the hash code for this instance. (Inherited from ValueType.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodToStringReturns the fully qualified type name of this instance. (Inherited from ValueType.)
Top

The properties can be accessed directly from Cached and Current; you do not need to retrieve the AutomationElement.AutomationElementInformation structure itself.

The properties in this structure can also be retrieved by using GetCurrentPropertyValue and GetCachedPropertyValue, using the corresponding identifiers from AutomationElement. For example, The AutomationElement.AutomationElementInformation.AcceleratorKey property is identified by the AutomationElement.AcceleratorKeyProperty field. More information about the individual properties is available on the reference pages for those identifiers; see the link in the Remarks section of each reference topic.

The following example shows how the Name property is retrieved from this structure.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft