PrintPreviewDialog::StartPosition Property
.NET Framework (current version)
Gets or sets the starting position of the dialog box at run time.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public: [BrowsableAttribute(false)] property FormStartPosition StartPosition { FormStartPosition get(); void set(FormStartPosition value); }
Property Value
Type: System.Windows.Forms::FormStartPositionA FormStartPosition that represents the starting position of the dialog box.
| Exception | Condition |
|---|---|
| InvalidEnumArgumentException | The value specified is outside the range of valid values. |
This property enables you to set the starting position of the form when it is displayed at run time. The form can be displayed manually or in the default location specified by Windows. You can also position the form to display in the center of the screen or in the center of its parent form for forms such as multiple document interface (MDI) child forms.
.NET Framework
Available since 1.1
Available since 1.1
Show: