WindowState

Applies to

Windows

Description

The WindowState property specifies how the window is first displayed. The state can be:

Usage


In a painter

StepsTo set the window state:

  1. Select the desired state from the WindowState drop-down list on the Position tab page of the window’s Properties view.


In scripts

You cannot specify the initial state of the window before it has been opened. You can change its display state afterwards while the window is open.

The WindowState property takes a value of the WindowState enumerated datatype. The following line sets the Maximized state for the current window:

This.WindowState = Maximized!