Diagram.Print Method
Draws the diagram.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
Syntax
'Declaration
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.GraphicsThe graphics object to use to draw the diagram.
clipRectangle
Type: System.Drawing.RectangleThe rectangular area in which to draw the diagram.
sourceLocation
Type: Microsoft.VisualStudio.Modeling.Diagrams.PointDThe top-left point in the clip rectangle in which to drawn the diagram.
scale
Type: System.SingleThe 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.