Table of Contents

Class PrintingWpf

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

Represents properties and methods for printing and print previewing of Edit control.

public class PrintingWpf : IPrintingWpf
Inheritance
PrintingWpf
Implements

Constructors

PrintingWpf(TextEditor)

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

Properties

AllowedOptions

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

Options

Gets or sets PrintOptions that determines printing behavior.

PrintDialog

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

ShowPrintOptionsDialog

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

Methods

Assign(IPrintingWpf)

Copies the contents of another IPrintingWpf object.

CreatePrintDocument()
ExecutePrintDialog()

Initializes and runs print dialog.

ExecutePrintOptionsDialog()

Initializes and runs print options dialog.

ExecutePrintPreviewDialog(OwnerWindow)
ExecutePrintPreviewDialog(DependencyObject)

Initializes and runs print preview dialog.

OnAllowedOptionsChanged()
OnInitialized()

Raises the Initialized event.

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

Sends PrintingWpf.PrintDocument content to the printer.

ResetAllowedOptions()

Resets AllowedOptions to the default value.

ResetOptions()

Resets Options to the default value.

Events

Initialized

When implemented by a class, occurs when document to print is initialized.