)
We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to collapse minor tickmark in the WinForms RadialGauge?

Platform: WinForms |
Control: RadialGauge |
Published Date: February 22, 2018 |
Last Revised Date: January 7, 2020

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:

Collapse the minor tickmark in RadialGauge

Reference link: https://help.syncfusion.com/windowsforms/radial-gauge/radial-gauge#custom-renderer

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon