Form.RestoreBounds Form.RestoreBounds Form.RestoreBounds Form.RestoreBounds Property

定义

获取窗体在其正常窗口状态下的位置和大小。Gets the location and size of the form in its normal window state.

public:
 property System::Drawing::Rectangle RestoreBounds { System::Drawing::Rectangle get(); };
[System.ComponentModel.Browsable(false)]
public System.Drawing.Rectangle RestoreBounds { get; }
member this.RestoreBounds : System.Drawing.Rectangle
Public ReadOnly Property RestoreBounds As Rectangle

属性值

Rectangle,包含窗体在正常窗口状态下的位置和大小。A Rectangle that contains the location and size of the form in the normal window state.

注解

通常情况下,使用RestoreBounds属性来跟踪用户的窗口大小和位置在其正常窗口状态的窗体的首选项。Typically, you use the RestoreBounds property to track the user's window size and position preferences for the form in its normal window state. 您应该跟踪的值WindowStateRestoreBounds属性跟踪用户的窗口首选项时。You should track both the value of the WindowState and RestoreBounds properties when tracking the user's window preferences.

备注

RestoreBounds属性是仅当WindowState的属性Form类不是等于NormalThe value of the RestoreBounds property is valid only when the WindowState property of the Form class is not equal to Normal.

适用于