Skip to main content

ChartRangeControlClientSnapMode Enum

Lists the values that specify the snap mode for a chart range control client.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v24.1.dll

NuGet Package: DevExpress.Charts

Declaration

[ResourceFinder(typeof(XtraChartsResFinder), "PropertyNamesRes")]
[TypeConverter(typeof(EnumTypeConverter))]
public enum ChartRangeControlClientSnapMode

Members

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

Related API Members

The following properties accept/return ChartRangeControlClientSnapMode values:

Library Related API Members
Cross-Platform Class Library ChartRangeControlClientGridOptions.SnapMode
WinForms Controls ChartRangeControlClientGridOptionsModel.SnapMode

Remarks

The values listed by the ChartRangeControlClientSnapMode enumeration are used to set the ChartRangeControlClientGridOptions.SnapMode property.

See Also