InvokePattern 類別
定義
表示啟動時並不會維護狀態,而是會啟始或執行明確之單一動作的控制項。Represents controls that initiate or perform a single, unambiguous action and do not maintain state when activated.
public ref class InvokePattern : System::Windows::Automation::BasePattern
public class InvokePattern : System.Windows.Automation.BasePattern
type InvokePattern = class
inherit BasePattern
Public Class InvokePattern
Inherits BasePattern
- 繼承
備註
InvokePattern如果不是透過另一個控制項模式來公開相同的行為,則控制項支援。Controls support InvokePattern if the same behavior is not exposed through another control pattern. 例如,如果 Invoke 控制項上的方法與或方法執行相同的動作 Expand Collapse ,則控制項不會支援 InvokePattern 。For example, if the Invoke method on a control performs the same action as the Expand or Collapse method, the control will not support InvokePattern.
消費者介面自動化代表控制項的專案,例如核取方塊和選項按鈕,其會維持狀態,而不是支援 TogglePattern 或 SelectionItemPattern 。UI Automation elements that represent controls such as check boxes and radio buttons, which maintain a state, instead support TogglePattern or SelectionItemPattern.
欄位
InvokedEvent |
識別叫用或啟動控制項時引發的事件。Identifies the event raised when a control is invoked or activated. |
Pattern |
識別 InvokePattern 控制項模式。Identifies the InvokePattern control pattern. |
方法
Equals(Object) |
判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object. (繼承來源 Object) |
GetHashCode() |
做為預設雜湊函式。Serves as the default hash function. (繼承來源 Object) |
GetType() |
取得目前執行個體的 Type。Gets the Type of the current instance. (繼承來源 Object) |
Invoke() |
傳送要求以啟動控制項,並啟始其單一明確的動作。Sends a request to activate a control and initiate its single, unambiguous action. |
MemberwiseClone() |
建立目前 Object 的淺層複製。Creates a shallow copy of the current Object. (繼承來源 Object) |
ToString() |
傳回代表目前物件的字串。Returns a string that represents the current object. (繼承來源 Object) |