Search
IMeasureUnitConverter.ConvertTo Method
See Also
 





Converts a value from the specified source unit to the specified target unit.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

double ConvertTo (
    MeasureUnit sourceUnit,
    MeasureUnit targetUnit,
    double value,
    Axis axis,
    Object param
)

Visual Basic  Copy Code

Function ConvertTo( _
    sourceUnit As MeasureUnit, _
    targetUnit As MeasureUnit, _
    value As Double, _
    axis As Axis, _
    param As Object _
) As Double

 Parameters

sourceUnit

The source MeasureUnit instance.

targetUnit

The target MeasureUnit instance.

value

A double value that should be converted.

axis

A member of the Axis enumeration specifying whether the value represents a horizontal or a vertical dimension.

param

An object providing device resolution information.

 Return Value

The converted value.

 Remarks

param can be set to either Graphics, IGraphics, DiagramView or IResolution object.

 See Also