DiagramLite Programmer's Guide
Diagram.ChangeUnit Method
See Also
 





Sets new MeasureUnit value and scales the coordinates of diagram items so that their absolute size remains unchanged.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming.Silverlight

 Syntax

C#  Copy Code

public void ChangeUnit (
    GraphicsUnit newUnit
)

Visual Basic  Copy Code

Public Sub ChangeUnit( _
    newUnit As GraphicsUnit _
)

 Parameters

newUnit

A GraphicsUnit value specifying the new unit.

 Remarks

This method scales the coordinates of nodes' Bounds values and links' ControlPoints to preserve their size when measured in the new unit. In addition, it scales values of some size and distance -related properties such as HeadShapeSize and CaptionHeight.

 See Also

Diagram Members
Diagram Class
MindFusion.Diagramming Namespace