How to collapse minor tickmark in the WinForms RadialGauge?
Collapse the minor tickmark
MinorTicks of the RadialGauge can be collapsed by setting the height of “MinorInnerLinesHeight“ and “MinorTickMarkHeight” properties to (0) zero. The following code illustrate the same,
C#
this.radialGauge1.EnableCustomNeedles = true;
this.radialGauge1.GaugeLabel = "Gauge";
this.radialGauge1.GaugeLableFont = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.radialGauge1.GaugeValueFont = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.radialGauge1.Location = new System.Drawing.Point(128, 136);
this.radialGauge1.MajorDifference = 50F;
this.radialGauge1.MaximumValue = 210F;
this.radialGauge1.MinimumSize = new System.Drawing.Size(125, 125);
this.radialGauge1.MinorDifference = 5F;
this.radialGauge1.MinorInnerLinesHeight = 0;
this.radialGauge1.MinorTickMarkHeight = 0;
this.radialGauge1.Name = "radialGauge1";
this.radialGauge1.Size = new System.Drawing.Size(300, 300);
this.radialGauge1.TabIndex = 0;
VB
Me.RadialGauge1.EnableCustomNeedles = True
Me.RadialGauge1.GaugeLabel = "Gauge"
Me.RadialGauge1.GaugeLableFont = New System.Drawing.Font("Segoe UI", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.RadialGauge1.GaugeValueFont = New System.Drawing.Font("Segoe UI", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.RadialGauge1.Location = New System.Drawing.Point(185, 92)
Me.RadialGauge1.MajorDifference = 50.0!
Me.RadialGauge1.MaximumValue = 210.0!
Me.RadialGauge1.MinimumSize = New System.Drawing.Size(125, 125)
Me.RadialGauge1.MinorDifference = 5.0!
Me.RadialGauge1.MinorInnerLinesHeight = 0
Me.RadialGauge1.MinorTickMarkHeight = 0
Me.RadialGauge1.Name = "RadialGauge1"
Me.RadialGauge1.Size = New System.Drawing.Size(300, 300)
Me.RadialGauge1.TabIndex = 0
Output:
Reference link: https://help.syncfusion.com/windowsforms/radial-gauge/radial-gauge#custom-renderer