Table of Contents

Class EditorPrintDocument

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

Defines a reusable object that sends output to a printer.

public class EditorPrintDocument : PrintDocument, IComponent, IDisposable
Inheritance
EditorPrintDocument
Implements

Remarks

Normally you do not need to use this class. It's used internally by Edit control.

Constructors

EditorPrintDocument(IPrinting, PrinterSettings)

Initializes a new instance of the EditorPrintDocument class with specified parameters.

Methods

CreatePrintEdit(ISyntaxEdit)
GetPageRect(int, Rectangle)
GetPagesCount(Rectangle, out int)
Init(ISyntaxEdit)

Initializes EditorPrintDocument content with content of Edit control.

Init(ISyntaxEdit, bool)

Initializes EditorPrintDocument content with content of Edit control.

NextPage(ref int)
OnBeginPrint(PrintEventArgs)

Raises the BeginPrint event. It is called after the Print() method is called and before the first page of the document prints.

OnEndPrint(PrintEventArgs)

Raises the EndPrint event. It is called when the last page of the document has printed.

OnPrintPage(PrintPageEventArgs)

Raises the PrintPage event. It is called before a page prints.