Compartilhar via


WinControl Class

Represents an internal base class for testing controls on Windows Forms.

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.TestTools.UITesting.UITestControl
    Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinControl
      More...

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

Syntax

'Declaration
<CLSCompliantAttribute(True)> _
Public Class WinControl _
    Inherits UITestControl
[CLSCompliantAttribute(true)]
public class WinControl : UITestControl
[CLSCompliantAttribute(true)]
public ref class WinControl : public UITestControl
[<CLSCompliantAttribute(true)>]
type WinControl =  
    class 
        inherit UITestControl 
    end
public class WinControl extends UITestControl

The WinControl type exposes the following members.

Constructors

  Name Description
Public method WinControl() Initializes a new instance of the WinControl class.
Public method WinControl(UITestControl) Initializes a new instance of the WinControl class by using the provided parent control.

Top

Properties

  Name Description
Public property AccessibleDescription Gets the description of the underlying IAccessible of this WinControl.
Public property AccessKey Gets the access key that is assigned to this control.
Public property BoundingRectangle (Inherited from UITestControl.)
Public property ClassName (Inherited from UITestControl.)
Public property Container (Inherited from UITestControl.)
Public property ControlId Gets the ID that is assigned to this control.
Public property ControlName Gets the name of this control.
Public property ControlType (Inherited from UITestControl.)
Public property Enabled (Inherited from UITestControl.)
Public property Exists (Inherited from UITestControl.)
Public property FilterProperties (Inherited from UITestControl.)
Public property FriendlyName (Inherited from UITestControl.)
Public property HasFocus (Inherited from UITestControl.)
Public property Height (Inherited from UITestControl.)
Public property HelpText Gets the help text that is assigned to this control.
Public property IsTopParent (Inherited from UITestControl.)
Public property Left (Inherited from UITestControl.)
Public property Name (Inherited from UITestControl.)
Public property NativeElement (Inherited from UITestControl.)
Public property SearchConfigurations (Inherited from UITestControl.)
Public property SearchProperties (Inherited from UITestControl.)
Protected property SearchPropertiesSetExplicitly (Inherited from UITestControl.)
Public property State (Inherited from UITestControl.)
Public property TechnologyName (Inherited from UITestControl.)
Public property ToolTipText
Public property Top (Inherited from UITestControl.)
Public property TopParent (Inherited from UITestControl.)
Public property Width (Inherited from UITestControl.)
Public property WindowHandle (Inherited from UITestControl.)
Public property WindowTitles (Inherited from UITestControl.)

Top

Methods

  Name Description
Public method CaptureImage (Inherited from UITestControl.)
Public method CopyFrom (Inherited from UITestControl.)
Public method DrawHighlight (Inherited from UITestControl.)
Public method EnsureClickable() (Inherited from UITestControl.)
Public method EnsureClickable(Point) (Inherited from UITestControl.)
Public method Equals (Inherited from UITestControl.)
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 method Find (Inherited from UITestControl.)
Public method FindMatchingControls (Inherited from UITestControl.)
Public method GetChildren (Inherited from UITestControl.)
Public method GetClickablePoint (Inherited from UITestControl.)
Public method GetHashCode (Inherited from UITestControl.)
Public method GetParent (Inherited from UITestControl.)
Public method GetProperty (Inherited from UITestControl.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method GetUITestControlsForSearch Gets an array of child controls in this control. (Overrides UITestControl.GetUITestControlsForSearch().)
Protected method GetValidSearchProperties Gets the dictionary of search properties valid for the control.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method SetFocus (Inherited from UITestControl.)
Public method SetProperty (Inherited from UITestControl.)
Public method ToString (Inherited from UITestControl.)
Public method TryFind (Inherited from UITestControl.)
Public method TryGetClickablePoint(Point%) (Inherited from UITestControl.)
Public method WaitForControlCondition(Predicate<UITestControl>) (Inherited from UITestControl.)
Public method WaitForControlCondition(Predicate<UITestControl>, Int32) (Inherited from UITestControl.)
Public method WaitForControlEnabled() (Inherited from UITestControl.)
Public method WaitForControlEnabled(Int32) (Inherited from UITestControl.)
Public method WaitForControlExist() (Inherited from UITestControl.)
Public method WaitForControlExist(Int32) (Inherited from UITestControl.)
Public method WaitForControlNotExist() (Inherited from UITestControl.)
Public method WaitForControlNotExist(Int32) (Inherited from UITestControl.)
Public method WaitForControlPropertyEqual(String, Object) (Inherited from UITestControl.)
Public method WaitForControlPropertyEqual(String, Object, Int32) (Inherited from UITestControl.)
Public method WaitForControlPropertyNotEqual(String, Object) (Inherited from UITestControl.)
Public method WaitForControlPropertyNotEqual(String, Object, Int32) (Inherited from UITestControl.)
Public method WaitForControlReady() (Inherited from UITestControl.)
Public method WaitForControlReady(Int32) (Inherited from UITestControl.)

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.WinControls Namespace

UITestControl

WinControl.PropertyNames

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.TestTools.UITesting.UITestControl
    Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinControl
      Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinButton
      Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinCalendar
      Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinCell
      Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinCheckBox
      Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinCheckBoxTreeItem
      Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinClient
      Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinColumnHeader
      Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinComboBox
      Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinCustom
      Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinDateTimePicker
      Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinEdit
      Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinGroup
      Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinHyperlink
      Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinList
      Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinListItem
      Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinMenu
      Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinMenuBar
      Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinMenuItem
      Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinPane
      Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinProgressBar
      Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinRadioButton
      Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinRow
      Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinRowHeader
      Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinScrollBar
      Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinSeparator
      Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinSlider
      Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinSpinner
      Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinStatusBar
      Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinTable
      Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinTabList
      Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinTabPage
      Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinText
      Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinTitleBar
      Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinToolBar
      Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinToolTip
      Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinTree
      Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinTreeItem
      Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinWindow