DesignerAutoFormatCollection.PreviewSize Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.