Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ChartRangeControlClientGridOptionsModel.SnapMode Property

Gets or sets the value of the ChartRangeControlClientGridOptions.SnapMode within the model.

Namespace: DevExpress.XtraCharts.Designer

Assembly: DevExpress.XtraCharts.v24.2.Wizard.dll

NuGet Package: DevExpress.Win.Charts

#Declaration

[PropertyForOptions]
public ChartRangeControlClientSnapMode SnapMode { get; set; }

#Property Value

Type Description
ChartRangeControlClientSnapMode

The snap mode.

Available values:

Name Description
Auto

Identifies the auto snap mode of the chart range control client, in which the values of ChartRangeControlClientGridOptions.SnapSpacing, ChartRangeControlClientGridOptions.SnapOffset, and ChartRangeControlClientDateTimeGridOptions.SnapAlignment properties are not specified and calculated according to the values of the corresponding ChartRangeControlClientGridOptions.GridSpacing, ChartRangeControlClientGridOptions.GridOffset and ChartRangeControlClientDateTimeGridOptions.GridAlignment properties.

In the image below, the SnapSpacing = GridSpacing = 4.

SnapAutoMode

ChartMeasureUnit

Identifies the chart measure unit mode of the chart range control client, in which the ChartRangeControlClientDateTimeGridOptions.SnapAlignment property is not specified and calculated according to the DateTimeScaleOptions.MeasureUnit (NumericScaleOptions.MeasureUnit) property. Note that the values of the ChartRangeControlClientGridOptions.SnapSpacing and ChartRangeControlClientGridOptions.SnapOffset properties should be equal to the default value.

For example, in the image below, the DateTimeScaleOptions.MeasureUnit property is set to Week.

SnapChartMeasureUnitMode

Manual

Identifies the manual snap mode of the chart range control client, meaning that the ChartRangeControlClientGridOptions.SnapSpacing, ChartRangeControlClientGridOptions.SnapOffset and ChartRangeControlClientDateTimeGridOptions.SnapAlignment properties are in effect, and they should be manually defined.

For example, in the image below, the ChartRangeControlClientGridOptions.SnapSpacing property is set to 6.

SnapManualMode

See Also