Partager via


DirectUIControl.State Property

Gets or sets the state of the control.

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

Syntax

'Declaration
Public Overridable Property State As ControlStates
public virtual ControlStates State { get; set; }
public:
virtual property ControlStates State {
    ControlStates get ();
    void set (ControlStates value);
}
abstract State : ControlStates with get, set 
override State : ControlStates with get, set
function get State () : ControlStates 
function set State (value : ControlStates)

Property Value

Type: Microsoft.VisualStudio.TestTools.UITest.Extension.ControlStates

.NET Framework Security

See Also

Reference

DirectUIControl Class

Microsoft.VisualStudio.TestTools.UITesting.DirectUIControls Namespace