PrintManager
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.
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.
PageOptions : PrintPageOptions
Gets or sets how printing fills each page.
Parts : IEnumerable<Part>
Gets or sets the collection of Parts to be 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.
События
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.