Search
MeasureUnit Constructor (Int32, String, MeasureUnitType, Double, Int32)
See Also
 





Initializes one of the built-in units of measure.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

public MeasureUnit (
    int id,
    string name,
    MeasureUnitType type,
    double unitsPerInch,
    int standardDivisions
)

Visual Basic  Copy Code

Public New ( _
    id As Integer, _
    name As String, _
    type As MeasureUnitType, _
    unitsPerInch As Double, _
    standardDivisions As Integer _
)

 Parameters

id

An integer identifier used to represent this unit in saved diagram files.

name

The display name of this unit.

type

A MeasureUnitType enumeration member specifying how unit size should be calculated.

unitsPerInch

A double value specifying how many units of this type fit within an inch.

standardDivisions

An integer value specifying how many standard divisions should be displayed for this unit in the scales of the Ruler control.

 See Also