WindowPattern 類別

定義

表示在傳統圖形化使用者介面 (GUI) 內提供基本視窗功能的控制項。Represents a control that provides fundamental window-based functionality within a traditional graphical user interface (GUI).

public ref class WindowPattern : System::Windows::Automation::BasePattern
public class WindowPattern : System.Windows.Automation.BasePattern
type WindowPattern = class
    inherit BasePattern
Public Class WindowPattern
Inherits BasePattern
繼承
WindowPattern

備註

支援此控制項模式的控制項範例包括最上層應用程式視窗、 多重文件介面 (MDI)multiple-document interface (MDI)子視窗、強制回應對話方塊和氣球說明視窗。Examples of controls that support this control pattern include top-level application windows, 多重文件介面 (MDI)multiple-document interface (MDI) child windows, modal dialogs and balloon help windows.

欄位

CanMaximizeProperty

識別 CanMaximize 屬性。Identifies the CanMaximize property.

CanMinimizeProperty

識別 CanMinimize 屬性。Identifies the CanMinimize property.

IsModalProperty

識別 IsModal 屬性。Identifies the IsModal property.

IsTopmostProperty

識別 IsTopmost 屬性。Identifies the IsTopmost property.

Pattern

識別 WindowPattern 控制項模式。Identifies the WindowPattern control pattern.

WindowClosedEvent

識別視窗關閉時引發的事件。Identifies the event that is raised when a window is closed.

WindowInteractionStateProperty

識別 WindowInteractionState 屬性。Identifies the WindowInteractionState property.

WindowOpenedEvent

識別視窗開啟時引發的事件。Identifies the event that is raised when a window is opened.

WindowVisualStateProperty

識別 WindowVisualState 屬性。Identifies the WindowVisualState property.

屬性

Cached

取得這個 WindowPattern 的快取 UI 自動化UI Automation 屬性值。Gets the cached UI 自動化UI Automation property values for this WindowPattern.

Current

取得這個 WindowPattern 的目前 UI 自動化UI Automation 屬性值。Gets the current UI 自動化UI Automation property values for this WindowPattern.

方法

Close()

嘗試關閉目前的視窗。Attempts to close the current window.

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(繼承來源 Object)
SetWindowVisualState(WindowVisualState)

變更視窗的 WindowVisualStateChanges the WindowVisualState of the window.

ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)
WaitForInputIdle(Int32)

導致將呼叫程式碼封鎖指定的時間,或直到相關聯的處理序進入閒置狀態 (就看何者先完成)。Causes the calling code to block for the specified time or until the associated process enters an idle state, whichever completes first.

適用於

另請參閱