語言

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。

備註

控制類型描述一種已知的互動模型,適用於任意 使用者介面自動化 元素,無需依賴在地控制類型或複雜邏輯規則的組合。

此性質唯一會在執行時改變的情況是支援 的控制 MultipleViewPattern項。 例如,Win32 的 ListView 控制項會根據目前的檢視方式從 DataGrid 變換到 List。

如需詳細資訊,請參閱ControlTypeProperty。

適用於

另請參閱