ControlType Class

Represents the types of controls for testing the user interface of an application. This class cannot be inherited.

Inheritance Hierarchy

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

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

Syntax

'Declaration
<SerializableAttribute> _
Public NotInheritable Class ControlType
[SerializableAttribute]
public sealed class ControlType
[SerializableAttribute]
public ref class ControlType sealed
[<Sealed>]
[<SerializableAttribute>]
type ControlType =  class end
public final class ControlType

The ControlType type exposes the following members.

Properties

  Name Description
Public property FriendlyName Gets the friendly name of the control type for generating action log entries.
Public property Name Gets the name of this control type object.
Public propertyStatic member NameComparer Gets a comparer for comparing the names of two control types.

Top

Methods

  Name Description
Public method Equals Determines whether the provided object is equal to this instance of the ControlType class. (Overrides Object.Equals(Object).)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodStatic member GetControlType(String) Returns a control type object by using the provided name.
Public methodStatic member GetControlType(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.
Public method GetHashCode Serves as a hash function for a particular type. (Overrides Object.GetHashCode().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method NameEquals Determines whether the provided name and the value of the Name property are equal.
Public method ToString Returns a string representation of this control type object. (Overrides Object.ToString().)

Top

Operators

  Name Description
Public operatorStatic member Equality Represents an equality operator (==) for comparing two control type objects.
Public operatorStatic member Implicit(String to ControlType) Provides an implicit operator for comparing the provided name with a control type object.
Public operatorStatic member Inequality Represents an inequality operator (!=) for comparing two control type objects.

Top

Fields

  Name Description
Public fieldStatic member Button Returns a control type object that has the name "Button" and a localized friendly name.
Public fieldStatic member Calendar Returns a control type object that has the name "Calendar" and a localized friendly name.
Public fieldStatic member Cell Returns a control type object that has the name "Cell" and a localized friendly name.
Public fieldStatic member CheckBox Returns a control type object that has the name "CheckBox" and a localized friendly name.
Public fieldStatic member CheckBoxTreeItem Returns a control type object that has the name "CheckBoxTreeItem" and a localized friendly name.
Public fieldStatic member Client Returns a control type object that has the name "" and a localized friendly name.
Public fieldStatic member ColumnHeader Returns a control type object that has the name "ColumnHeader" and a localized friendly name.
Public fieldStatic member ComboBox Returns a control type object that has the name "ComboBox" and a localized friendly name.
Public fieldStatic member Custom Returns a control type object that has the name "Custom" and a localized friendly name.
Public fieldStatic member DatePicker Returns a control type object that has the name "DatePicker" and a localized friendly name.
Public fieldStatic member DateTimePicker Returns a control type object that has the name "DateTimePicker" and a localized friendly name.
Public fieldStatic member Document Returns a control type object that has the name "Document" and a localized friendly name.
Public fieldStatic member Edit Returns a control type object that has the name "Edit" and a localized friendly name.
Public fieldStatic member Empty Returns a control type object that has the name "Empty" and a localized friendly name.
Public fieldStatic member Expander Returns a control type object that has the name "Expander" and a localized friendly name.
Public fieldStatic member FileInput Returns a control type object that has the name "FileInput" and a localized friendly name.
Public fieldStatic member Frame Returns a control type object that has the name "Frame" and a localized friendly name.
Public fieldStatic member Group Returns a control type object that has the name "Group" and a localized friendly name.
Public fieldStatic member Hyperlink Returns a control type object that has the name "Hyperlink" and a localized friendly name.
Public fieldStatic member Image Returns a control type object that has the name "Image" and a localized friendly name.
Public fieldStatic member Label Returns a control type object that has the name "Label" and a localized friendly name.
Public fieldStatic member List Returns a control type object that has the name "List" and a localized friendly name.
Public fieldStatic member ListItem Returns a control type object that has the name "ListItem" and a localized friendly name.
Public fieldStatic member Menu Returns a control type object that has the name "Menu" and a localized friendly name.
Public fieldStatic member MenuBar Returns a control type object that has the name "MenuBar" and a localized friendly name.
Public fieldStatic member MenuItem Returns a control type object that has the name "MenuItem" and a localized friendly name.
Public fieldStatic member Pane Returns a control type object that has the name "Pane" and a localized friendly name.
Public fieldStatic member ProgressBar Returns a control type object that has the name " ProgressBar" and a localized friendly name.
Public fieldStatic member RadioButton Returns a control type object that has the name "RadioButton" and a localized friendly name.
Public fieldStatic member Row Returns a control type object that has the name "Row" and a localized friendly name.
Public fieldStatic member RowHeader Returns a control type object that has the name "RowHeader" and a localized friendly name.
Public fieldStatic member ScrollBar Returns a control type object that has the name "ScrollBar" and a localized friendly name.
Public fieldStatic member Separator Returns a control type object that has the name "Separator" and a localized friendly name.
Public fieldStatic member Slider Returns a control type object that has the name "Slider" and a localized friendly name.
Public fieldStatic member Spinner Returns a control type object that has the name "Spinner" and a localized friendly name.
Public fieldStatic member SplitButton Returns a control type object that has the name "SplitButton" and a localized friendly name.
Public fieldStatic member StatusBar Returns a control type object that has the name "StatusBar" and a localized friendly name.
Public fieldStatic member Table Returns a control type object that has the name "Table" and a localized friendly name.
Public fieldStatic member TabList Returns a control type object that has the name "TabList" and a localized friendly name.
Public fieldStatic member TabPage Returns a control type object that has the name "TabPage" and a localized friendly name.
Public fieldStatic member Text Returns a control type object that has the name "Text" and a localized friendly name.
Public fieldStatic member TitleBar Returns a control type object that has the name "TitleBar" and a localized friendly name.
Public fieldStatic member ToggleButton Returns a control type object that has the name "ToggleButton" and a localized friendly name.
Public fieldStatic member ToolBar Returns a control type object that has the name "ToolBar" and a localized friendly name.
Public fieldStatic member ToolTip Returns a control type object that has the name "ToolTip" and a localized friendly name.
Public fieldStatic member Tree Returns a control type object that has the name "Tree" and a localized friendly name.
Public fieldStatic member TreeItem Returns a control type object that has the name "TreeItem" and a localized friendly name.
Public fieldStatic member Window Returns a control type object that has the name "Window" and a localized friendly name.

Top

Thread Safety

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

See Also

Reference

Microsoft.VisualStudio.TestTools.UITesting Namespace