Diagram.Print Method
Draws the diagram.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'宣告
Public Sub Print ( _
graphics As Graphics, _
clipRectangle As Rectangle, _
sourceLocation As PointD, _
scale As Single _
)
public void Print(
Graphics graphics,
Rectangle clipRectangle,
PointD sourceLocation,
float scale
)
public:
void Print(
Graphics^ graphics,
Rectangle clipRectangle,
PointD sourceLocation,
float scale
)
member Print :
graphics:Graphics *
clipRectangle:Rectangle *
sourceLocation:PointD *
scale:float32 -> unit
public function Print(
graphics : Graphics,
clipRectangle : Rectangle,
sourceLocation : PointD,
scale : float
)
Parameters
- graphics
Type: System.Drawing.Graphics
The graphics object to use to draw the diagram.
- clipRectangle
Type: System.Drawing.Rectangle
The rectangular area in which to draw the diagram.
- sourceLocation
Type: Microsoft.VisualStudio.Modeling.Diagrams.PointD
The top-left point in the clip rectangle in which to drawn the diagram.
- scale
Type: System.Single
The size of the diagram. For example, this could be 100% (1.0f).
Remarks
This method sets the PageUnit, PageScale, SmoothingMode, and TextRenderingHint for the graphics object. This method also translates the graphics object, based on the argument for the sourceLocation parameter.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.