PrintManager

StockSharp.Xaml.Diagram.GXDiagram

这个班级负责打印一个图表.

继承自: FrameworkElement

实现: IDocumentPaginatorSource

构造函数

PrintManager
public PrintManager()
printManager = PrintManager()

Create a default 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)

Use a DocumentPaginator in a safe manner.

act
a 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

确定Bondes的依赖财产。

CompletedEvent
public static readonly RoutedEvent CompletedEvent
value = PrintManager.CompletedEvent

确定已完成的路由事件。

ForegroundTemplateProperty
public static readonly DependencyProperty ForegroundTemplateProperty
value = PrintManager.ForegroundTemplateProperty

确定ForegroundTemplate的受抚养财产。

MarginProperty
public static readonly DependencyProperty MarginProperty
value = PrintManager.MarginProperty

确定边际依赖属性

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

确定天平依赖属性。