Export (0) Print
Expand All

Form.RestoreBounds Property

Gets the location and size of the form in its normal window state.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

public Rectangle RestoreBounds { get; }
/** @property */
public Rectangle get_RestoreBounds ()

public function get RestoreBounds () : Rectangle

Not applicable.

Property Value

A Rectangle that contains the location and size of the form in the normal window state.

Typically, you use the RestoreBounds property to track the user's window size and position preferences for the form in its normal window state. You should track both the value of the WindowState and RestoreBounds properties when tracking the user's window preferences.

NoteNote:

The value of the RestoreBounds property is valid only when the WindowState property of the Form class is not equal to Normal.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft