PrintPreviewDialog::StartPosition Property

 

Gets or sets the starting position of the dialog box at run time.

Namespace:   System.Windows.Forms
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::FormStartPosition

A 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
Return to top
Show: