ComponentOne Gauges for WinForms
Gauges for WinForms Task-Based Help / Creating a State or Numeric Indicator / Creating a Numeric Indicator
In This Topic
    Creating a Numeric Indicator
    In This Topic

    To add a numeric indicator, follow these steps:

    1. Click the ellipsis button next to the Gauges property in the Properties window. The C1Gauge.Gauges Collection Editor dialog box opens.
    2. Click the ellipsis button next to Decorators. The Decorators Collection Editor opens.
    3. Click the Add drop-down arrow and select C1GaugeSingleLabel.
    4. To bind the C1GaugeSingleLabel to the pointer value, simply set the PointerIndex to 1.
    5. To position the C1GaugeSingleLabel, set its Angle property to 180 and Location to 80. This will position the label centered below our caption. You can increase the FontSize to 12.

    Numeric indicator

    Notice, we can also apply Value Colors to this SingleLabel, meaning the label could be Yellow for the given value above. You would just apply the same set of Value Colors as we did for the State Indicator.

    See Also