Delen via


IUITechnologyElement Interface

Provides an internal interface to implement the UITechnologyElement class. Do not implement this interface directly. Instead, derive from the UITechnologyElement class.

Namespace:  Microsoft.VisualStudio.TestTools.UITest.Extension
Assembly:  Microsoft.VisualStudio.TestTools.UITest.Extension (in Microsoft.VisualStudio.TestTools.UITest.Extension.dll)

Syntax

'Declaration
<GuidAttribute("1FED2CD2-C6B1-4AF3-91D8-BC8B1CC388C0")> _
<ComVisibleAttribute(True)> _
Public Interface IUITechnologyElement
[GuidAttribute("1FED2CD2-C6B1-4AF3-91D8-BC8B1CC388C0")]
[ComVisibleAttribute(true)]
public interface IUITechnologyElement
[GuidAttribute(L"1FED2CD2-C6B1-4AF3-91D8-BC8B1CC388C0")]
[ComVisibleAttribute(true)]
public interface class IUITechnologyElement
[<GuidAttribute("1FED2CD2-C6B1-4AF3-91D8-BC8B1CC388C0")>]
[<ComVisibleAttribute(true)>]
type IUITechnologyElement =  interface end
public interface IUITechnologyElement

The IUITechnologyElement type exposes the following members.

Properties

  Name Description
Public property ChildIndex Gets the zero-based position of this element in the collection of child elements in the parent element.
Public property ClassName Gets the class name for this element.
Public property ControlTypeName Gets the name of the control type for this element.
Public property FriendlyName Gets the friendly name of this element.
Public property IsLeafNode Gets a value that indicates whether this element is a leaf node, which means it has no children.
Public property IsPassword Gets a value that indicates whether this element contains protected content.
Public property IsTreeSwitchingRequired Gets a value that indicates whether tree switching is required for windowless tree switching cases.
Public property Name Gets the name of this element.
Public property NativeElement Gets the underlying native technology element.
Public property QueryId Gets an identifier object that can be used to uniquely identify and find this element.
Public property SwitchingElement Gets or sets the container element if this element is hosted inside an element of another technology.
Public property TechnologyName Gets the name of the corresponding technology of this element.
Public property Value Gets or sets the value of this element as a string.
Public property WindowHandle Gets the handle to the Win32 window that contains this element.

Top

Methods

  Name Description
Public method EnsureVisibleByScrolling Scrolls this element into view in the UI.
Public method Equals Returns a value that indicates whether the provided object is equal to this element.
Public method GetBoundingRectangle Returns the coordinates of the rectangle that encloses this element.
Public method GetClickablePoint Gets a clickable point for this element.
Public method GetNativeControlType Returns the native control type of this element.
Public method GetOption Returns the specified option for this element.
Public method GetPropertyValue Returns the value of the specified property for this element.
Public method GetQueryIdForRelatedElement
Public method GetRequestedState Returns the current state information for the given requested states for this element.
Public method GetRightToLeftProperty Returns a value that indicates whether this element has the specified kind of left-to-right format.
Public method GetScrolledPercentage Returns the amount that is scrolled as a percentage of the size of the scrollbar.
Public method InitializeProgrammaticScroll Initializes this element for programmatic scrolling.
Public method InvokeProgrammaticAction Performs programmatic action by using the provided option.
Public method ScrollProgrammatically
Public method SetFocus Sets the UI focus on this element.
Public method SetOption Sets the value of the specified option in this element.
Public method WaitForReady Waits for this element to be ready for user action.

Top

See Also

Reference

Microsoft.VisualStudio.TestTools.UITest.Extension Namespace

UITechnologyElement

Other Resources

Extending Coded UI Tests and Action Recordings to Support Microsoft Excel