AutomationElement.AutomationElementInformation.ControlType Property
Definition
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
Property Value
The interaction model for this element. The default value is Custom.
Remarks
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.