PrintPreviewDialog.MaximumSize Property

 

This API supports the product infrastructure and is not intended to be used directly from your code.

Gets or sets the maximum size the form can be resized to.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

[BrowsableAttribute(false)]
public Size MaximumSize { get; set; }

Property Value

Type: System.Drawing.Size

A Size that represents the maximum size for the form.

Exception Condition
ArgumentOutOfRangeException

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.

.NET Framework
Available since 1.1
Return to top
Show: