Partager via


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

  • 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

See Also

Reference

Diagram Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace