PrintManager

StockSharp.Xaml.Diagram.GXDiagram

This class is responsible for printing a diagram.

Наследует: FrameworkElement

Реализует: IDocumentPaginatorSource

Конструкторы

PrintManager()

Create a default PrintManager.

Свойства

BackgroundTemplate : DataTemplate

Gets or sets the DataTemplate printed as the background for each page.

Bounds : Rect

Gets or sets the area of the model to be printed, in model coordinates.

Diagram : Diagram

Gets the Diagram for which this PrintManager performs printing.

DocumentPaginator : DocumentPaginator

Do not use this property, but call DocumentPaginator}) to use a DocumentPaginator safely.

ForegroundTemplate : DataTemplate

Gets or sets the DataTemplate printed as the foreground for each page.

Margin : Thickness

Gets or sets the margins inside the page size, around the printed area.

PageOptions : PrintPageOptions

Gets or sets how printing fills each page.

Parts : IEnumerable<Part>

Gets or sets the collection of Parts to be printed.

Scale : double

Gets or sets the scale factor at which everything is printed.

Методы

OnCompleted()

This is called after the print operation has completed.

Paginate(Action<DocumentPaginator>)

Use a DocumentPaginator in a safe manner.

act
an Action<DocumentPaginator> that is called with a DocumentPaginator with initialization work beforehand and cleanup work afterwards.
Print(PrintDialog)

Print the diagram using the choices made in the given PrintDialog.

dlg

События

Completed : RoutedEventHandler

This RoutedEvent occurs when printing is completed.

Поля

BackgroundTemplateProperty : DependencyProperty

Identifies the BackgroundTemplate dependency property.

BoundsProperty : DependencyProperty

Identifies the Bounds dependency property.

CompletedEvent : RoutedEvent

Identifies the Completed routed event.

ForegroundTemplateProperty : DependencyProperty

Identifies the ForegroundTemplate dependency property.

MarginProperty : DependencyProperty

Identifies the Margin dependency property

PageOptionsProperty : DependencyProperty

Identifies the PageOptions dependency property.

PartsProperty : DependencyProperty

Identifies the Parts dependency property.

ScaleProperty : DependencyProperty

Identifies the Scale dependency property.