AutomationElement.AutomationElementInformation.ControlType 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
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。