Table of Contents

Class PageSetupDialog

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Enables users to change page-related print settings, including margins and paper orientation. This class cannot be inherited.

public class PageSetupDialog : BasePrintDialog, IBaseObject, IDisposableObject, IDisposable
Inheritance
PageSetupDialog
Implements

Remarks

The PageSetupDialog dialog box modifies the PageSettings and PrinterSettings information for a given Document. The user can enable sections of the dialog box to manipulate printing and margins; paper orientation, size, and source; and to show Help button. The MinMargins property defines the minimum margins a user can select.

When you create an instance of the PageSetupDialog class, the read/write properties are set to initial values.

Because a PageSetupDialog needs page settings to display, you need to set the Document, PrinterSettings, or PageSettings property before calling ShowModal().

Constructors

PageSetupDialog()

Initializes a new instance of PageSetupDialog.

Fields

Default

Gets default PageSetupDialog instance.

Properties

AllowMargins

Gets or sets a value indicating whether the margins section of the dialog box is enabled.

AllowOrientation

Gets or sets a value indicating whether the orientation section of the dialog box (landscape versus portrait) is enabled.

AllowPaper

Gets or sets a value indicating whether the paper section of the dialog box (paper size and paper source) is enabled.

AllowPrinter

Gets or sets a value indicating whether the Printer button is enabled.

Handler

Gets dialog handler.

MinMargins

Gets or sets a value indicating the minimum margins, in millimeters, the user is allowed to select.

Methods

CreateHandler()

Creates dialog handler.