語言

IWindowProvider.SetVisualState(WindowVisualState) 方法

定義

改變視窗的視覺狀態。 例如,最小化或最大化它。

public:
 void SetVisualState(System::Windows::Automation::WindowVisualState state);
public void SetVisualState(System.Windows.Automation.WindowVisualState state);
abstract member SetVisualState : System.Windows.Automation.WindowVisualState -> unit
Public Sub SetVisualState (state As WindowVisualState)

參數

state
WindowVisualState

窗戶的視覺狀態。

例外狀況

當控制組不支持所請求的行為時。

適用於

另請參閱