Share via


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

要求的視窗可見狀態。

例外狀況

當控制項不支援要求的行為。

適用於

另請參閱