PrintManager

StockSharp.Xaml.Diagram.GXDiagram

Этот класс отвечает за печать диаграммы.

Наследует: FrameworkElement

Реализует: IDocumentPaginatorSource

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

PrintManager
public PrintManager()
printManager = PrintManager()

Создайте по умолчанию PrintManager.

Свойства

BackgroundTemplate
public DataTemplate BackgroundTemplate { get; set; }
value = printManager.BackgroundTemplate
printManager.BackgroundTemplate = value

Получает или устанавливает DataTemplate напечатанный в качестве фона для каждой страницы.

Bounds
public Rect Bounds { get; set; }
value = printManager.Bounds
printManager.Bounds = value

Получает или устанавливает область модели, которая должна быть напечатана, в координатах модели.

Diagram
public Diagram Diagram { get; internal set; }
value = printManager.Diagram
printManager.Diagram = value

Получает Диаграмму, для которой этот PrintManager выполняет печать.

DocumentPaginator
public virtual DocumentPaginator DocumentPaginator { get; }
value = printManager.DocumentPaginator

Не используйте это свойство, но позвоните по телефону DocumentPaginator}, чтобы безопасно использовать DocumentPaginator.

ForegroundTemplate
public DataTemplate ForegroundTemplate { get; set; }
value = printManager.ForegroundTemplate
printManager.ForegroundTemplate = value

Получает или устанавливает DataTemplate напечатанный в качестве переднего плана для каждой страницы.

Margin
public Thickness Margin { get; set; }
value = printManager.Margin
printManager.Margin = value

Получает или устанавливает поля внутри размера страницы, вокруг печатной области.

PageOptions
public PrintPageOptions PageOptions { get; set; }
value = printManager.PageOptions
printManager.PageOptions = value

Получает или устанавливает, как печать заполняет каждую страницу.

Parts
public IEnumerable<Part> Parts { get; set; }
value = printManager.Parts
printManager.Parts = value

Получает или устанавливает коллекцию деталей, которые должны быть напечатаны.

Scale
public double Scale { get; set; }
value = printManager.Scale
printManager.Scale = value

Получает или устанавливает масштабный коэффициент, при котором все печатается.

Методы

OnCompleted
protected virtual void OnCompleted()
printManager.OnCompleted()

Это называется после того, как операция печати завершена.

Paginate
public void Paginate(Action<DocumentPaginator> act)
printManager.Paginate(act)

Используйте DocumentPaginator безопасным способом.

act
Action<DocumentPaginator>, который вызывается с помощью DocumentPaginator с предварительной инициализацией и последующей очисткой.
Print
public void Print(PrintDialog dlg)
printManager.Print(dlg)

Распечатайте диаграмму, используя выбор, сделанный в данном PrintDialog.

dlg

События

Completed
public event RoutedEventHandler Completed
printManager.Completed += handler

Это RoutedEvent происходит после завершения печати.

Поля

BackgroundTemplateProperty
public static readonly DependencyProperty BackgroundTemplateProperty
value = PrintManager.BackgroundTemplateProperty

Идентифицирует свойство зависимости BackgroundTemplate.

BoundsProperty
public static readonly DependencyProperty BoundsProperty
value = PrintManager.BoundsProperty

Идентифицирует свойство зависимостей Bounds.

CompletedEvent
public static readonly RoutedEvent CompletedEvent
value = PrintManager.CompletedEvent

Идентифицирует перенаправленное событие Completed.

ForegroundTemplateProperty
public static readonly DependencyProperty ForegroundTemplateProperty
value = PrintManager.ForegroundTemplateProperty

Идентифицирует свойство зависимости ForegroundTemplate.

MarginProperty
public static readonly DependencyProperty MarginProperty
value = PrintManager.MarginProperty

Идентифицирует свойство зависимости Margin.

PageOptionsProperty
public static readonly DependencyProperty PageOptionsProperty
value = PrintManager.PageOptionsProperty

Идентифицирует свойство зависимости PageOptions.

PartsProperty
public static readonly DependencyProperty PartsProperty
value = PrintManager.PartsProperty

Идентифицирует свойство зависимости частей.

ScaleProperty
public static readonly DependencyProperty ScaleProperty
value = PrintManager.ScaleProperty

Идентифицирует свойство зависимости Scale.