LinearScale.MaxValue Property

Gets or sets the maximum value of the linear scale.

Namespace: DevExpress.XtraGauges.Core.Model

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


public float MaxValue { get; set; }

Property Value

Type Default Description


A Single value that is the maximum limit of the linear scale.


The LinearScale.MinValue and MaxValue properties together define the range of values allowed for the LinearScale. The current value indicated by the level bar is specified by the LinearScale.Value property.

Note that the MaxValue property value shouldn’t necessarily be greater than the LinearScale.MinValue. For instance, if you switch their values, this will simply change a linear scale’s direction.

MinValue = 0, MaxValue = 100 (Default) MinValue = 100, MaxValue = 0 (Rotated)
LinearScaleValues_Default LinearScaleValues_Rotated

While the MinValue and MaxValue properties define the limit values, the number of tickmarks (and therefore labels) between them is specified by the LinearScale.MinorTickCount and LinearScale.MajorTickCount properties. The following images demonstrate how these properties can be modified together to customize the linear scale.


MinValue = -10, MaxValue = 10

MinValue = -10, MaxValue = 10,

MinorTickCount = 1, MajorTickCount = 3




See Also