TrackBarEdit.Increment(Double, TrackBarIncrementTargetEnum) Method
Increments the specified range parameter by the specified value.
Namespace: DevExpress.Xpf.Editors
Assembly: DevExpress.Xpf.Core.v24.2.dll
NuGet Package: DevExpress.Wpf.Core
#Declaration
public void Increment(
double value,
TrackBarIncrementTargetEnum target
)
#Parameters
Name | Type | Description |
---|---|---|
value | Double | A Double value to be added. |
target | Track |
A Track |
#Remarks
A track bar editor supports four built-in styles which define its appearance and behavior:
Native
A scrollable control used to slide a small thumb along a continuous line. The Increment method adds the specified value to its RangeBaseEdit.Value property. The target parameter is ignored.
Range
A range track bar, allowing a range of values to be specified. The Increment method adds the specified value to the specified range parameter. For example, if the target parameter is set to TrackBarIncrementTargetEnum.SelectionStart, the value parameter is added to TrackBarEdit.SelectionStart.
Zoom
A zooming track bar. The Increment method adds the specified value to its RangeBaseEdit.Value property. The target parameter is ignored.
ZoomRange
A zooming range track bar, allowing a range of values to be specified. The Increment method adds the specified value to the specified range parameter. For example, if the target parameter is set to TrackBarIncrementTargetEnum.SelectionRange, the editor’s TrackBarEditRange.SelectionStart and TrackBarEdit.SelectionEnd properties are increased by value.