AutomationElement.AutomationElementInformation.ControlType Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the ControlType of the element.
public:
property System::Windows::Automation::ControlType ^ ControlType { System::Windows::Automation::ControlType ^ get(); };
public System.Windows.Automation.ControlType ControlType { get; }
member this.ControlType : System.Windows.Automation.ControlType
Public ReadOnly Property ControlType As ControlType
The interaction model for this element. The default value is Custom.
Control type describes a known interaction model for arbitrary UI Automation elements without relying on a localized control type or combination of complex logic rules.
The only case where this property can change at run time is for a control that supports MultipleViewPattern. An example is the Win32 ListView control, which can change from DataGrid to List, depending on the current view.
For more information, see ControlTypeProperty.
Product | Versions |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: