DateTimeChartRangeControlClient.SnapAlignment Property
Specifies the measurement unit to which selection thumbs of the range control are snapped.
Namespace: DevExpress.Xpf.Charts.RangeControlClient
Assembly: DevExpress.Xpf.Charts.v24.2.dll
NuGet Package: DevExpress.Wpf.Charts
Declaration
Property Value
Type | Description |
---|---|
DateTimeMeasurementUnit | A DateTimeMeasurementUnit enumeration value representing the selection thumbs alignment interval. |
Available values:
Name | Description |
---|---|
Millisecond | Specifies a millisecond as the measurement unit for date-time values. |
Second | Specifies a second as the measurement unit for date-time values. |
Minute | Specifies a minute as the measurement unit for date-time values. |
Hour | Specifies an hour as the measurement unit for date-time values. |
Day | Specifies a day as the measurement unit for date-time values. |
Week | Specifies a week as the measurement unit for date-time values. |
Month | Specifies a month as the measurement unit for date-time values. |
Quarter | Specifies a quarter of a year as the measurement unit for date-time values. |
Year | Specifies a year as the measurement unit for date-time values. |
Remarks
Use the SnapAlignment property to snap the selection thumbs to the range interval when dragging them in the range control’s viewport.
Before using the SnapAlignment property, make sure the RangeControl.AllowSnapToInterval property is set to true.