Form.MaximizedBounds Form.MaximizedBounds Form.MaximizedBounds Form.MaximizedBounds Property

定义

获取或设置窗体最大化后的大小。Gets or sets the size of the form when it is maximized.

protected:
 property System::Drawing::Rectangle MaximizedBounds { System::Drawing::Rectangle get(); void set(System::Drawing::Rectangle value); };
protected System.Drawing.Rectangle MaximizedBounds { get; set; }
member this.MaximizedBounds : System.Drawing.Rectangle with get, set
Protected Property MaximizedBounds As Rectangle

属性值

Rectangle,表示窗体最大化后的边界。A Rectangle that represents the bounds of the form when it is maximized.

异常

Top 属性的值大于窗体的高度。The value of the Top property is greater than the height of the form.

- 或 --or- Left 属性的值大于窗体的宽度。The value of the Left property is greater than the width of the form.

继承者说明

Form 继承的类可以重写此方法,以便在最大化窗体时为窗体提供新边界。Classes that inherit from Form can override this method to provide new bounds for the form when it is maximized. 当单击窗体的 "最大化" 按钮时,类在内部设置此属性。The class sets this property internally when the form's Maximize button is clicked.

适用于

另请参阅