IWindowProvider 介面

定義

公開方法與屬性,以支援使用者介面自動化用戶端存取控制項,這些控制項在傳統圖形化使用者介面 (GUI) 中提供基本的視窗功能。Exposes methods and properties to support UI Automation client access to controls that provide fundamental window-based functionality within a traditional graphical user interface (GUI).

public interface class IWindowProvider
[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.Guid("987df77b-db06-4d77-8f8a-86a9c3bb90b9")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IWindowProvider
type IWindowProvider = interface
Public Interface IWindowProvider
屬性

備註

在必須支援WindowPattern控制項模式的使用者介面自動化提供者上執行。Implemented on a UI Automation provider that must support the WindowPattern control pattern.

屬性

InteractionState

取得視窗的互動狀態。Gets the interaction state of the window.

IsModal

取得的值指定視窗是否為強制回應。Gets a value that specifies whether the window is modal.

IsTopmost

取得值,這個值指定視窗是否是圖層順序的最上層項目。Gets a value that specifies whether the window is the topmost element in the z-order.

Maximizable

取得的值指定視窗是否可最大化。Gets a value that specifies whether the window can be maximized.

Minimizable

取得的值指定視窗是否可最小化。Gets a value that specifies whether the window can be minimized.

VisualState

取得視窗的可見狀態。Gets the visual state of the window.

方法

Close()

嘗試關閉視窗。Attempts to close the window.

SetVisualState(WindowVisualState)

變更視窗的可見狀態。Changes the visual state of the window. 例如,最小化或最大化。For example, minimizes or maximizes it.

WaitForInputIdle(Int32)

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

適用於

另請參閱