Skip to main content
A newer version of this page is available. .

LinearScale.MinorTickCount Property

Gets or sets the number of minor tickmarks on the scale between adjacent major tickmarks.

Namespace: DevExpress.XtraGauges.Core.Model

Assembly: DevExpress.XtraGauges.v19.1.Core.dll

Declaration

[DefaultValue(1)]
[XtraSerializableProperty]
public int MinorTickCount { get; set; }

Property Value

Type Default Description
Int32 1

An integer value that defines the number of minor tickmarks between adjacent major tickmarks.

Remarks

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

Note that the MinorTickCount property does not specify the total number of minor tickmarks on a scale, but the number of minor tickmarks between two adjacent major tickmarks.

On the image below, MinorTickCount = 3, but the total number of minor tickmarks is 15.

LinearScaleValues_MinorTickmarks0

If major tickmarks are hidden (i.e. the ShowTick property of the LinearScale.MajorTickmark object is false), by default, their labels remain visible and minor tickmarks are not displayed instead of major tickmarks.

LinearScaleValues_MinorTickmarks1

If you want to show minor tickmarks instead of major tickmarks, set the AllowTickOverlap property of the LinearScale.MajorTickmark object to true. Note that in this case, the MinorTickCount property value remains the same, but the total number of minor tickmarks is increased.

On the image below, MinorTickCount = 3, but the total number of minor tickmarks is 21.

LinearScaleValues_MinorTickmarks2

If you want to hide the first minor tickmark, the last one, or both, set the ShowFirst / ShowLast properties of the LinearScale.MinorTickmark object to false.

LinearScaleValues_MinorTickmarks3

See Also