PrintPreviewDialog.MaximumSize PrintPreviewDialog.MaximumSize PrintPreviewDialog.MaximumSize PrintPreviewDialog.MaximumSize Property

定义

获取或设置窗体可调整到的最小大小。Gets or sets the maximum size the form can be resized to.

public:
 property System::Drawing::Size MaximumSize { System::Drawing::Size get(); void set(System::Drawing::Size value); };
[System.ComponentModel.Browsable(false)]
public System.Drawing.Size MaximumSize { get; set; }
member this.MaximumSize : System.Drawing.Size with get, set
Public Property MaximumSize As Size

属性值

Size,表示该窗体的最大大小。A Size that represents the maximum size for the form.

异常

Size 内的高度或宽度值小于零。The values of the height or width within the Size are less than 0.

注解

此属性与此类无关。This property is not relevant for this class.

使用此属性可以将窗体的大小限制为指定的最大大小。This property enables you to limit the size of a form to a specified maximum size. 如果同时显示多个窗口, 则可以使用此功能, 以确保单个窗口不会导致隐藏其他窗口。You can use this feature when displaying multiple windows at the same time to ensure that a single window does not cause other windows to be hidden.

适用于