BaseRangeBar.LockValue(Single) Method
Sets a custom end value for the range bar.
Namespace: DevExpress.XtraGauges.Core.Model
Assembly: DevExpress.XtraGauges.v24.1.Core.dll
NuGet Package: DevExpress.Gauges.Core
Declaration
Parameters
Name | Type | Description |
---|---|---|
value | Single | A custom end value for the range bar. |
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 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 BaseRangeBar.UnlockValue method. If the UnlockValue method is called, the range bar will be rendered between the AnchorValue and the scale’s current value.