Diagram.Print(Graphics, Rectangle, PointD, Single) 方法

定义

使用指定的打印机图形对象绘制关系图。

public:
 void Print(System::Drawing::Graphics ^ graphics, System::Drawing::Rectangle clipRectangle, Microsoft::VisualStudio::Modeling::Diagrams::PointD sourceLocation, float scale);
public void Print (System.Drawing.Graphics graphics, System.Drawing.Rectangle clipRectangle, Microsoft.VisualStudio.Modeling.Diagrams.PointD sourceLocation, float scale);
member this.Print : System.Drawing.Graphics * System.Drawing.Rectangle * Microsoft.VisualStudio.Modeling.Diagrams.PointD * single -> unit
Public Sub Print (graphics As Graphics, clipRectangle As Rectangle, sourceLocation As PointD, scale As Single)

参数

graphics
Graphics

用于绘制的图形对象。

clipRectangle
Rectangle

要在其中进行绘制的剪辑矩形。 该矩形采用设备单位。

sourceLocation
PointD

关系图上边界框的左上方 (世界单位相对于应绘制到目标剪辑矩形的关系图) 的左上角。

scale
Single

缩放 (100% 为 1.0 f) 。

注解

此方法将设置 Graphics 对象的 PageUnit、PageScale、SmoothingMode 和 TextRenderingHint。 此方法还将基于 sourceLocation 参数转换图形对象。

适用于