ControlType.Button 欄位
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
識別按鈕控制。
public: static initonly System::Windows::Automation::ControlType ^ Button;
public static readonly System.Windows.Automation.ControlType Button;
staticval mutable Button : System.Windows.Automation.ControlType
Public Shared ReadOnly Button As ControlType
欄位值
備註
按鈕按下時執行單一動作。
按鈕可以作為獨立控制,或作為其他控制類型的子控制。 例如,連擊框控制中的下拉箭頭就是一個按鈕。 當作為子控制時,按鈕會在 使用者介面自動化 樹的控制視圖中(而非內容檢視中)。