Framework / Localization / Measurement Units
In This Topic

    Measurement Units

    In This Topic

    Nevron Open Vision (NOV) provides support for a lot of measurements units - both metric (mm, cm, m, etc.) and imperial (inch, foot, yard, etc.). Measurement units are used in many dialogs and property editors in NOV. If you have a preference for metric or imperial units, you can set the NApplication.MeasurementUnitsType to any of the following values:

    The unit types defined by NApplication will be used in many places in Nevron Open Vision like for example in the property editors of the rich text editor.

    In NOV Diagram, property editors use the unit of the LogicalLength of the drawing page. It can be seen in the top-left corner of the drawing view, between the horizontal and the vertical rulers. Double-click to change it or change it programmatically like this:

    Change the logical length of a drawing page
    Copy Code
    drawingPage.LogicalLength = new NLength(1, NUnit.Millimeter);
    

    For more information about the page and the page scale take a look at the last section of the Diagram Pages topic.

    See Also