语言

AutomationElement.AutomationElementInformation.ControlType 属性

定义

ControlType获取元素。

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

属性值

此元素的交互模型。 默认值为 Custom。

注解

控件类型描述任意UI 自动化元素的已知交互模型,而无需依赖复杂逻辑规则的本地化控件类型或组合。

此属性在运行时可以更改的唯一情况是支持 MultipleViewPattern控件。 例如,Win32 ListView 控件可能会根据当前视图而更改DataGrid。List

有关详细信息,请参阅 ControlTypeProperty。

适用于

另请参阅