Table of Contents

Class Printing

Namespace
Alternet.Editor
Assembly
Alternet.Editor.v9.dll

Represents class designed to print, preview and execute print setup dialog for Edit control.

public class Printing : IPrinting, IDisposable
Inheritance
Printing
Implements

Constructors

Printing(ISyntaxEdit)

Initializes a new instance of the Printing class with a specified owner.

Properties

AllowedOptions

Gets or sets Print Options dialog options, that can be changed by user.

Footer

Represents IEditPageHeader object to draw footer of printing document.

Header

Represents IEditPageHeader object to draw header of printing document.

Options

Gets or sets PrintOptions that determines printing behaviour.

PageSetupDialog

Represents a dialog box that allows users to manipulate page settings, including margins and paper orientation.

PrintDialog

Represents a dialog box that allows users to select a printer and choose which portions of the document to print.

PrintDocument

Represents document to print, print preview or setup.

PrintEdit

Provides an access to internal ISyntaxEdit object being printed.

PrintOptionsDialog

Provides a dialog box that allows users to manipulate print settings.

PrintPreviewDialog

Represents a dialog box that allows user to preview print document.

PrinterSettings

Represents settings for print document.

ShowPrintOptionsDialog

Gets or sets a value indicating whether Print Options Dialog can be opened.

Methods

Assign(IPrinting)

Copies the contents of another IPrinting object.

CreatePrintDocument()
Dispose()

Disposes this Printing and frees resources associated with it.

Dispose(bool)
ExecutePageSetupDialog()

Initializes and runs page setup dialog.

ExecutePageSetupDialog(IWin32Window)

Initializes and runs page setup dialog.

ExecutePrintDialog()

Initializes and runs print dialog.

ExecutePrintDialog(IWin32Window)

Initializes and runs print dialog.

ExecutePrintOptionsDialog()

Initializes and runs print options dialog.

ExecutePrintOptionsDialog(IWin32Window)

Initializes and runs print options dialog.

ExecutePrintPreviewDialog()

Initializes and runs print preview dialog.

ExecutePrintPreviewDialog(IWin32Window)

Initializes and runs print preview dialog.

~Printing()

Destroys the instance of the Printing class.

OnAllowedOptionsChanged()
OnCreatePrintEdit()

Raises the CreatePrintEdit event.

OnFinalized()

Raises the Finalized event.

OnFooterChanged()
OnHeaderChanged()
OnInitialized()

Raises the Initialized event.

OnOptionsChanged()
OnPrintOptionsDialogChanged()
OnShowPrintOptionsDialogChanged()
Print()

Sends Printing.PrintDocument content to the printer.

ResetAllowedOptions()

Resets AllowedOptions to the default value.

ResetOptions()

Resets Options to the default value.

ShouldSerializeAllowedOptions()

Indicates whether the AllowedOptions property should be persisted.

ShouldSerializeOptions()

Indicates whether the Options property should be persisted.

Events

CreatePrintEdit

Occurs when Edit control to print is about to be created.

Finalized

Occurs when printing is done.

Initialized

Occurs when document to print is initialized.