Diagram.Print Method
Draws the diagram.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
public void Print( Graphics graphics, Rectangle clipRectangle, PointD sourceLocation, float scale )
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).
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.
- 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.