Diagram::Print Method (Graphics^, Rectangle, PointD, Single)

 

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)

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.

Return to top
Show: