JavaScript Editor JavaScript Editor     JavaScript Debugger

Previous Section Next Section

Main Page

Using the PrintPreviewDialog Class

As discussed in the In Depth section of this chapter, you can use Print Preview dialog to let the user see what a document will look like when it's printed. This dialog is supported by the PrintPreviewDialog class, which has this class hierarchy:

Object
   MarshalByRefObject
      Component
         Control
            ScrollableControl
               ContainerControl
                  Form
                     PrintPreviewDialog

You can find the notable public properties of PrintPreviewDialog objects in Table 9.30. Note that I'm not listing those members this class inherits from the Control class here (which you can find in Tables 5.1, 5.2, and 5.3) or from the Form class (which you can find in Tables 4.1, 4.2, and 4.3).

Table 9.30: Noteworthy public properties of PrintPreviewDialog objects.

Property

Means

AcceptButton

Gets/sets the button that is automatically clicked when the user presses the Enter key.

ControlBox

Gets/sets whether a control box is displayed in the caption bar of the form.

Document

Gets/sets the document to preview.

FormBorderStyle

Gets/sets the border style of the form.

HelpButton

Gets/sets whether a help button should be displayed in the caption box of the form.

MaximizeBox

Gets/sets whether the maximize button is displayed in the caption bar of the form.

MaximumSize

Gets the maximum size the form can be resized to.

MinimizeBox

Gets/sets whether the minimize button is displayed in the caption bar of the form.

MinimumSize

Gets the minimum size the form can be resized to.

PrintPreviewControl

Gets the PrintPreviewControl contained in this form.

ShowInTaskbar

Gets/sets whether the form is displayed in the Windows taskbar.

Size

Gets/sets the size of the form.

StartPosition

Gets/sets the starting position of the form at run time.

TopMost

Gets/sets whether the form should be displayed as your application's the topmost form.

Previous Section Next Section




JavaScript Editor Free JavaScript Editor     JavaScript Editor