Search
MeasureUnit.Convert Method (PointF, MeasureUnit, Object)
See Also
 





Converts the specified point from this unit to the specified unit.

Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming

 Syntax

C#  Copy Code

public PointF Convert (
    PointF p,
    MeasureUnit targetUnit,
    Object context
)

Visual Basic  Copy Code

Public Function Convert( _
    p As PointF, _
    targetUnit As MeasureUnit, _
    context As Object _
) As PointF

 Parameters

p

The point to convert, expressed in the current measure unit.

targetUnit

The target measure unit.

context

A parameter that is used when converting from logical units (such as inches and millimeters) to device units (such as pixels) or special units. This can be either Graphics, IGraphics, or IResolution.

 Return Value

The converted point.

 Remarks

If the target represents logical unit (such as millimeter, inch, point) or a unit derived from a logical unit, and the current unit is not logical (for example pixel), the third parameter is required to perform the conversion. If both units are of the same generic type, graphics is ignored.

 See Also