Nevron Open Vision Documentation
In This Topic
    Common Features
    In This Topic

    Gauge indicators share a number of common features as outlines in this topic.

     Paint Order

    The indicator paint order it controlled through the PaintOrder property. It allows you to choose from three options as shown in the following table:

    PaintOrder Description
    BeforeScale The indicator is painted before the scale it is attached to
    AfterScale The indicator is painted after the scale it is attached to
    PostPaint The indicator is painted in during the gauge post paint

    By default range indicators and marker indicators use BeforeScale and needle indicators use PostPaint. This allows you to add child widgets without hiding the needle. The following code changes the paint order to AfterScale:

    C#
    Copy Code
    someIndicator.PaintOrder = IndicatorPaintOrder.AfterScale;
     Indicator Axis

    All indicators must have an axis where they scale on. If you do not specify an axis explicitly the indicator will scale on the first axis in the gauge axis collection. The following code will create a simple radial panel with two axes and two indicators:

    C#
    Copy Code

    indicator.ScaleAxis = axis;

     Offset From Scale

    Each indicator has a property called OffsetFromScale that allows you to control how the indicator is offset from the axis scale it is attached to. When you specify the offset negative values mean offset to the right side of the ruler and positive values mean the opposite. Note that the offset is synchronized with the ruler orientation. The following pictures show how two indicators – marker and range indicator scale on a linear gauge depending on the offset from scale property and the axis ruler orientation:

    C#
    Copy Code

    indicator.OffsetFromScale = 20;