Search
IMeasureUnitConverter.ConvertFrom 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 ConvertFrom (
    MeasureUnit targetUnit,
    MeasureUnit sourceUnit,
    double value,
    Axis axis,
    Object param
)

Visual Basic  Copy Code

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

 Parameters

targetUnit

The target MeasureUnit instance.

sourceUnit

The source 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