New to Telerik UI for WinForms? Download free 30-day trial

Working with Bars

This element represents a bar that can be used for indicating a specific value or as a scale for other indicators.

Design Time

The bar has start and end values and they can be tied to the gauge or can have static values. The bellow image shows two bars and the smart tag for the first one. As you can see the most important properties can be set directly in the smart tag.

Figure 1: Design Time

WinForms RadGauges LinearGauge Design Time

Properties

  • RangeStart: Indicates the start value of the bar.

  • RangeEnd: Indicates the end value of the bar.

  • Width, Width2: These properties represent the top and bottom (left or right if the element is placed horizontally) width values. These properties allow you to create triangle or trapezoid bars.

Figure 2: Width Property

WinForms RadGauges LinearGauge Width Property

  • Offset: Specifies how far to the left/bottom the control is shifted.

  • BackColor, BackColor2: By default the bar has linear gradient background and these properties allow you to set its colors.

Figure 3: BackColor Property

WinForms RadGauges LinearGauge BackColor Property

  • IsTopToBottom: Specifies the orientation of the bar.

  • BindStartRange, BindEndRange: These properties allow you to bind the start/end ranges of the bar to the ones of the gauge.

See Also

In this article