TrackBarContextButton.AllowUseMiddleValue Property
Gets or sets whether the tick is displayed in the middle of the track and enables using a custom middle tick value.
Namespace: DevExpress.Utils
Assembly: DevExpress.Utils.v24.2.dll
Declaration
[DefaultValue(false)]
[DXCategory("Appearance")]
public bool AllowUseMiddleValue { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Boolean | false | true if the tick is displayed in the middle of the track; otherwise, false. |
Remarks
By default, the TrackBarContextButton does not display the middle tick. To display it, set the AllowUseMiddleValue property to true. By default, if this option is enabled, the middle tick corresponds to the mean value between the TrackBarContextButton.Maximum and TrackBarContextButton.Minimum property values. You can also set the middle tick to a custom value between the extreme values using the TrackBarContextButton.Middle property. For instance, you can set minimum to -273, maximum to 100, and use zero as the middle tick value. In this case, the middle tick does not divide the scale in half, but into two unequal ranges.