Category / Section
How to customize the WinForms LinearGauge selection value based on MajorDifference value?
1 min read
Customize the lineargauge selection
In WinForms Linear Gauge control, we can define the increment value on selection change by IncrementValue property of LinearGauge. We can make use of this IncrementValue property to change the value based on MajorDifference.
C#
//MajorDifference value this.linearGauge1.MajorDifference = 20; //LinearGauge selection value customized by given value this.linearGauge1.IncrementValue = this.linearGauge1.MajorDifference;
VB
'MajorDifference value Me.linearGauge1.MajorDifference = 20 'LinearGauge selection value customized by given value Me.linearGauge1.IncrementValue = Me.linearGauge1.MajorDifference
Screenshot
Samples:
Reference link: https://help.syncfusion.com/windowsforms/radial-gauge/linear-gauge