Export (0) Print
Expand All

PrintPreviewDialog.FormBorderStyle Property

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

Gets or sets the border style of the form.

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

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

Property Value

Type: System.Windows.Forms.FormBorderStyle
A FormBorderStyle that represents the style of border to display for the form. The default is FormBorderStyle.Sizable.

ExceptionCondition
InvalidEnumArgumentException

The value specified is outside the range of valid values.

This property is not relevant for this class.

The border style of the form determines how the outer edge of the form appears. In addition to changing the border display for a form, certain border styles prevent the form from being sized. For example, the FormBorderStyle.FixedDialog border style changes the border of the form to that of a dialog box and prevents the form from being resized. The border style can also affect the size or availability of the caption bar section of a form.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft