Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ControlType Class

 

ControlType class encapsulates the different types of UI Controls

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

System.Object
  Microsoft.VisualStudio.TestTools.UITesting.ControlType

[SerializableAttribute]
public sealed class ControlType

NameDescription
System_CAPS_pubpropertyFriendlyName

Gets the friendly name of the control type for generating action log entries.

System_CAPS_pubpropertyName

Gets the name of this control type object.

System_CAPS_pubpropertySystem_CAPS_staticNameComparer

Gets a comparer for comparing the names of two control types.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the provided object is equal to this instance of the ControlType class.(Overrides Object.Equals(Object).)

System_CAPS_pubmethodSystem_CAPS_staticGetControlType(String)

Returns a control type object by using the provided name.

System_CAPS_pubmethodSystem_CAPS_staticGetControlType(String, String)

Returns a control type object by using the provided name and friendly name. If it does not exist, creates a new control type by using the provided name and friendly name.

System_CAPS_pubmethodGetHashCode()

Hashcode of the ControlType(Overrides Object.GetHashCode().)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodNameEquals(String)

Determines whether the provided name and the value of the Name property are equal.

System_CAPS_pubmethodToString()

Returns a string representation of this control type object.(Overrides Object.ToString().)

NameDescription
System_CAPS_pubfieldSystem_CAPS_staticAudio

Identifies an audio control.

System_CAPS_pubfieldSystem_CAPS_staticButton

Returns a control type object that has the name "Button" and a localized friendly name.

System_CAPS_pubfieldSystem_CAPS_staticCalendar

Returns a control type object that has the name "Calendar" and a localized friendly name.

System_CAPS_pubfieldSystem_CAPS_staticCell

Returns a control type object that has the name "Cell" and a localized friendly name.

System_CAPS_pubfieldSystem_CAPS_staticCheckBox

Returns a control type object that has the name "CheckBox" and a localized friendly name.

System_CAPS_pubfieldSystem_CAPS_staticCheckBoxTreeItem

Returns a control type object that has the name "CheckBoxTreeItem" and a localized friendly name.

System_CAPS_pubfieldSystem_CAPS_staticClient

Returns a control type object that has the name "" and a localized friendly name.

System_CAPS_pubfieldSystem_CAPS_staticColumnHeader

Returns a control type object that has the name "ColumnHeader" and a localized friendly name.

System_CAPS_pubfieldSystem_CAPS_staticComboBox

Returns a control type object that has the name "ComboBox" and a localized friendly name.

System_CAPS_pubfieldSystem_CAPS_staticContextMenu

A context menu is a control which has multiple sub items inside it.

System_CAPS_pubfieldSystem_CAPS_staticCustom

Returns a control type object that has the name "Custom" and a localized friendly name.

System_CAPS_pubfieldSystem_CAPS_staticDatePicker

Returns a control type object that has the name "DatePicker" and a localized friendly name.

System_CAPS_pubfieldSystem_CAPS_staticDateTimePicker

Returns a control type object that has the name "DateTimePicker" and a localized friendly name.

System_CAPS_pubfieldSystem_CAPS_staticDocument

Returns a control type object that has the name "Document" and a localized friendly name.

System_CAPS_pubfieldSystem_CAPS_staticEdit

Returns a control type object that has the name "Edit" and a localized friendly name.

System_CAPS_pubfieldSystem_CAPS_staticEmpty

Returns a control type object that has the name "Empty" and a localized friendly name.

System_CAPS_pubfieldSystem_CAPS_staticExpander

Returns a control type object that has the name "Expander" and a localized friendly name.

System_CAPS_pubfieldSystem_CAPS_staticFileInput

Returns a control type object that has the name "FileInput" and a localized friendly name.

System_CAPS_pubfieldSystem_CAPS_staticFlipView

System_CAPS_pubfieldSystem_CAPS_staticFlipViewItem

System_CAPS_pubfieldSystem_CAPS_staticFrame

Returns a control type object that has the name "Frame" and a localized friendly name.

System_CAPS_pubfieldSystem_CAPS_staticGroup

Returns a control type object that has the name "Group" and a localized friendly name.

System_CAPS_pubfieldSystem_CAPS_staticHub

System_CAPS_pubfieldSystem_CAPS_staticHubSection

System_CAPS_pubfieldSystem_CAPS_staticHyperlink

Returns a control type object that has the name "Hyperlink" and a localized friendly name.

System_CAPS_pubfieldSystem_CAPS_staticImage

Returns a control type object that has the name "Image" and a localized friendly name.

System_CAPS_pubfieldSystem_CAPS_staticLabel

Returns a control type object that has the name "Label" and a localized friendly name.

System_CAPS_pubfieldSystem_CAPS_staticList

Returns a control type object that has the name "List" and a localized friendly name.

System_CAPS_pubfieldSystem_CAPS_staticListItem

Returns a control type object that has the name "ListItem" and a localized friendly name.

System_CAPS_pubfieldSystem_CAPS_staticMedia

Identifies a media control.

System_CAPS_pubfieldSystem_CAPS_staticMenu

Returns a control type object that has the name "Menu" and a localized friendly name.

System_CAPS_pubfieldSystem_CAPS_staticMenuBar

Returns a control type object that has the name "MenuBar" and a localized friendly name.

System_CAPS_pubfieldSystem_CAPS_staticMenuItem

Returns a control type object that has the name "MenuItem" and a localized friendly name.

System_CAPS_pubfieldSystem_CAPS_staticPane

Returns a control type object that has the name "Pane" and a localized friendly name.

System_CAPS_pubfieldSystem_CAPS_staticPivot

System_CAPS_pubfieldSystem_CAPS_staticPivotItem

System_CAPS_pubfieldSystem_CAPS_staticProgressBar

Returns a control type object that has the name " ProgressBar" and a localized friendly name.

System_CAPS_pubfieldSystem_CAPS_staticRadioButton

Returns a control type object that has the name "RadioButton" and a localized friendly name.

System_CAPS_pubfieldSystem_CAPS_staticRating

An control that is used to rate something by selecting the number of stars in it

System_CAPS_pubfieldSystem_CAPS_staticRow

Returns a control type object that has the name "Row" and a localized friendly name.

System_CAPS_pubfieldSystem_CAPS_staticRowHeader

Returns a control type object that has the name "RowHeader" and a localized friendly name.

System_CAPS_pubfieldSystem_CAPS_staticScrollBar

Returns a control type object that has the name "ScrollBar" and a localized friendly name.

System_CAPS_pubfieldSystem_CAPS_staticSemanticZoom

System_CAPS_pubfieldSystem_CAPS_staticSeparator

Returns a control type object that has the name "Separator" and a localized friendly name.

System_CAPS_pubfieldSystem_CAPS_staticSlider

Returns a control type object that has the name "Slider" and a localized friendly name.

System_CAPS_pubfieldSystem_CAPS_staticSpinner

Returns a control type object that has the name "Spinner" and a localized friendly name.

System_CAPS_pubfieldSystem_CAPS_staticSplitButton

Returns a control type object that has the name "SplitButton" and a localized friendly name.

System_CAPS_pubfieldSystem_CAPS_staticStatusBar

Returns a control type object that has the name "StatusBar" and a localized friendly name.

System_CAPS_pubfieldSystem_CAPS_staticTable

Returns a control type object that has the name "Table" and a localized friendly name.

System_CAPS_pubfieldSystem_CAPS_staticTabList

Returns a control type object that has the name "TabList" and a localized friendly name.

System_CAPS_pubfieldSystem_CAPS_staticTabPage

Returns a control type object that has the name "TabPage" and a localized friendly name.

System_CAPS_pubfieldSystem_CAPS_staticText

Returns a control type object that has the name "Text" and a localized friendly name.

System_CAPS_pubfieldSystem_CAPS_staticTitleBar

Returns a control type object that has the name "TitleBar" and a localized friendly name.

System_CAPS_pubfieldSystem_CAPS_staticToggleButton

Returns a control type object that has the name "ToggleButton" and a localized friendly name.

System_CAPS_pubfieldSystem_CAPS_staticToggleSwitch

System_CAPS_pubfieldSystem_CAPS_staticToolBar

Returns a control type object that has the name "ToolBar" and a localized friendly name.

System_CAPS_pubfieldSystem_CAPS_staticToolTip

Returns a control type object that has the name "ToolTip" and a localized friendly name.

System_CAPS_pubfieldSystem_CAPS_staticTree

Returns a control type object that has the name "Tree" and a localized friendly name.

System_CAPS_pubfieldSystem_CAPS_staticTreeItem

Returns a control type object that has the name "TreeItem" and a localized friendly name.

System_CAPS_pubfieldSystem_CAPS_staticVideo

Identifies a video control.

System_CAPS_pubfieldSystem_CAPS_staticWindow

Returns a control type object that has the name "Window" and a localized friendly name.

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticEquality(ControlType, ControlType)

Represents an equality operator (==) for comparing two control type objects.

System_CAPS_puboperatorSystem_CAPS_staticImplicit(String to ControlType)

Provides an implicit operator for comparing the provided name with a control type object.

System_CAPS_puboperatorSystem_CAPS_staticInequality(ControlType, ControlType)

Represents an inequality operator (!=) for comparing two control type objects.

No content here will be updated; please do not add material here.

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: