Back to Devexpress

ArcScale.MajorTickCount Property

corelibraries-devexpress-dot-xtragauges-dot-core-dot-model-dot-arcscale-0a1b28b3.md

latest3.0 KB
Original Source

ArcScale.MajorTickCount Property

Gets or sets the total number of major tickmarks displayed on a circular scale.

Namespace : DevExpress.XtraGauges.Core.Model

Assembly : DevExpress.XtraGauges.v25.2.Core.dll

NuGet Package : DevExpress.Gauges.Core

Declaration

csharp
[DefaultValue(11)]
public int MajorTickCount { get; set; }
vb
<DefaultValue(11)>
Public Property MajorTickCount As Integer

Property Value

TypeDefaultDescription
Int3211

An integer value that defines the total number of major tickmarks.

|

Remarks

Use the MajorTickCount and ArcScale.MinorTickCount properties to specify the number of tickmarks shown on a circular scale. The appearance of major and minor tickmarks is specified by the ArcScale.MajorTickmark and ArcScale.MinorTickmark properties, correspondingly.

In the image below, MajorTickCount = 11 , which generated 11 major tickmarks: for the 0 , 10 , 20 , 30 , 40 , 50 , 60 , 70 , 80 , 90 and 100 values.

This means, for example, if the ArcScale.MinValue is set to 0 and ArcScale.MaxValue is set to 12 and you want to show a major tickmark (and a label) for each integer value, you should set the MajorTickCount property to 13.

Also note that if you don’t need to show the first or the last major tickmarks, or both - you can hide them by setting the ShowFirst and ShowLast properties of the ArcScale.MajorTickmark object to false.

See Also

MinorTickCount

TickCount

ArcScale Class

ArcScale Members

DevExpress.XtraGauges.Core.Model Namespace