Edit

Share via


DesignerAutoFormatCollection.PreviewSize Property

Definition

Gets the maximum outer dimensions of the control as it will appear at run time.

public:
 property System::Drawing::Size PreviewSize { System::Drawing::Size get(); };
public System.Drawing.Size PreviewSize { get; }
member this.PreviewSize : System.Drawing.Size
Public ReadOnly Property PreviewSize As Size

Property Value

A Size structure that contains the height and width of the control on the design surface.

Remarks

The PreviewSize property examines each format in the collection and returns the largest height and the largest width in a Size structure. A visual designer, such as Visual Studio 2005, uses the PreviewSize to determine the initial size of the AutoFormat dialog box. The minimum size is 200-by-200 pixels.

Applies to

See also