Skip to main content

BaseRangeBar.UnlockValue() Method

Clears a custom ending value that has been set via the BaseRangeBar.LockValue method.

Namespace: DevExpress.XtraGauges.Core.Model

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

NuGet Package: DevExpress.Gauges.Core

Declaration

public void UnlockValue()

Remarks

The range bar starts at the value specified by the BaseRangeBar.AnchorValue property. By default, the end value is specified by the scale’s current value. When the scale’s value changes, the range bar’s end point changes as well. To specify a custom end value for the range bar, call the BaseRangeBar.LockValue method. After this method has been called, the range bar ignores the scale’s value and it’s rendered between the AnchorValue and the value passed to the LockValue method.

To clear a custom end value set via the LockValue method, call the UnlockValue method. If the UnlockValue method is called, the range bar will be rendered between the AnchorValue and the scale’s current value.

See Also