PrintPreviewDialog.Size Property


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

Gets or sets the size of the form.

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

public Size Size { get; set; }

Property Value

Type: System.Drawing.Size

A Size that represents the size of the form.

This property is not relevant for this class.

This property allows you to set both the height and width of the form at the same time instead of setting the Height and Width properties individually. If you want to set the size and location of a form, you can use the DesktopBounds property to size and locate the form based on desktop coordinates or use the Bounds property of the Control class to set the size and location of the form based on screen coordinates.

.NET Framework
Available since 1.1
Return to top