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.

适用于

另请参阅