ControlType Class
TOC
Collapse the table of content
Expand the table of content

ControlType Class

 

Identifies the type of a user interface (UI) control.

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

System.Object
  System.Windows.Automation.AutomationIdentifier
    System.Windows.Automation.ControlType

public class ControlType : AutomationIdentifier

NameDescription
System_CAPS_pubpropertyId

Gets the underlying numerical identifier.(Inherited from AutomationIdentifier.)

System_CAPS_pubpropertyLocalizedControlType

Gets a description of the control type.

System_CAPS_pubpropertyProgrammaticName

Gets the registered programmatic name.(Inherited from AutomationIdentifier.)

NameDescription
System_CAPS_pubmethodCompareTo(Object)

Compares this AutomationIdentifier with another AutomationIdentifier.(Inherited from AutomationIdentifier.)

System_CAPS_pubmethodEquals(Object)

Returns a value indicating whether the supplied AutomationIdentifier is equivalent to this AutomationIdentifier.(Inherited from AutomationIdentifier.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Returns the hash code for this UI Automation identifier.(Inherited from AutomationIdentifier.)

System_CAPS_pubmethodGetNeverSupportedPatterns()

Retrieves the pattern identifiers that are not supported by the control type.

System_CAPS_pubmethodGetRequiredPatternSets()

Retrieves an array of sets of required patterns.

System_CAPS_pubmethodGetRequiredProperties()

Retrieves an array of the required property identifiers (IDs) for this control type.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticLookupById(Int32)

Retrieves a ControlType that encapsulates a specified numerical identifier.

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubfieldSystem_CAPS_staticButton

Identifies a button control.

System_CAPS_pubfieldSystem_CAPS_staticCalendar

Identifies a calendar control, such as a date-picker.

System_CAPS_pubfieldSystem_CAPS_staticCheckBox

Identifies a check box control.

System_CAPS_pubfieldSystem_CAPS_staticComboBox

Identifies a combo box control.

System_CAPS_pubfieldSystem_CAPS_staticCustom

Identifies a control that is not one of the defined control types.

System_CAPS_pubfieldSystem_CAPS_staticDataGrid

Identifies a data grid control.

System_CAPS_pubfieldSystem_CAPS_staticDataItem

Identifies a data item control.

System_CAPS_pubfieldSystem_CAPS_staticDocument

Identifies a document control.

System_CAPS_pubfieldSystem_CAPS_staticEdit

Identifies an edit control, such as a text box.

System_CAPS_pubfieldSystem_CAPS_staticGroup

Identifies a group control, which acts as a container for other controls.

System_CAPS_pubfieldSystem_CAPS_staticHeader

Identifies a header control, which is a container for the labels of rows and columns of information.

System_CAPS_pubfieldSystem_CAPS_staticHeaderItem

Identifies a header item, which is the label for a row or column of information.

System_CAPS_pubfieldSystem_CAPS_staticHyperlink

Identifies a hyperlink control.

System_CAPS_pubfieldSystem_CAPS_staticImage

Identifies an image control.

System_CAPS_pubfieldSystem_CAPS_staticList

Identifies a list control, such as a list box.

System_CAPS_pubfieldSystem_CAPS_staticListItem

Identifies a list item control, which is a child item of a list control.

System_CAPS_pubfieldSystem_CAPS_staticMenu

Identifies a menu control, such as a top-level menu in an application window.

System_CAPS_pubfieldSystem_CAPS_staticMenuBar

Identifies a menu bar control, which generally contains a set of top-level menus.

System_CAPS_pubfieldSystem_CAPS_staticMenuItem

Identifies a menu item control.

System_CAPS_pubfieldSystem_CAPS_staticPane

Identifies a pane control.

System_CAPS_pubfieldSystem_CAPS_staticProgressBar

Identifies a progress bar control, which visually indicates the progress of a lengthy operation.

System_CAPS_pubfieldSystem_CAPS_staticRadioButton

Identifies a radio button control, which is a selection mechanism allowing exactly one selected item in a group.

System_CAPS_pubfieldSystem_CAPS_staticScrollBar

Identifies a scroll bar control, such as a scroll bar in an application window.

System_CAPS_pubfieldSystem_CAPS_staticSeparator

Identifies a separator, which creates a visual division in controls like menus and toolbars.

System_CAPS_pubfieldSystem_CAPS_staticSlider

Identifies a slider control.

System_CAPS_pubfieldSystem_CAPS_staticSpinner

Identifies a spinner control.

System_CAPS_pubfieldSystem_CAPS_staticSplitButton

Identifies a split button, which is a button that performs a default action and can also expand to a list of other possible actions.

System_CAPS_pubfieldSystem_CAPS_staticStatusBar

Identifies a status bar control.

System_CAPS_pubfieldSystem_CAPS_staticTab

Identifies a tab control.

System_CAPS_pubfieldSystem_CAPS_staticTabItem

Identifies a tab item control, which represents a page of a tab control.

System_CAPS_pubfieldSystem_CAPS_staticTable

Identifies a table.

System_CAPS_pubfieldSystem_CAPS_staticText

Identifies an edit control, such as a text box or rich text box.

System_CAPS_pubfieldSystem_CAPS_staticThumb

Identifies the control in a scrollbar that can be dragged to a different position.

System_CAPS_pubfieldSystem_CAPS_staticTitleBar

Identifies the caption bar on a window.

System_CAPS_pubfieldSystem_CAPS_staticToolBar

Identifies a toolbar, such as the control that contains a set of command buttons in an application window.

System_CAPS_pubfieldSystem_CAPS_staticToolTip

Identifies a tooltip control, an informational window that appears as a result of moving the pointer over a control or sometimes when tabbing to a control using the keyboard.

System_CAPS_pubfieldSystem_CAPS_staticTree

Identifies a tree control.

System_CAPS_pubfieldSystem_CAPS_staticTreeItem

Identifies a node in a TreeItem control.

System_CAPS_pubfieldSystem_CAPS_staticWindow

Identifies a window frame, which contains child objects.

ControlType inherits from AutomationIdentifier and is used to identify the type of a control represented by an AutomationElement. The control type is determined by the developer of the UI Automation provider.

This class contains static fields, which are themselves ControlType objects, to identify the standard types of controls. There is also a Custom type for controls that do not match one of the defined types.

The only case where a control's control type might change at run time is where the control supports MultipleViewPattern. An example is the Win32 list view, which can be a DataGrid or List, depending on the current view.

Control types do not have a one-to-one equivalence to control patterns. A control can be of only one type, but it may support multiple patterns or no patterns at all, depending on its specific functionality.

For detailed information on the various control types, see UI Automation Control Types.

.NET Framework
Available since 3.0

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

Return to top
Show:
© 2016 Microsoft