Back to Devexpress

ChartRangeControlClientSnapMode Enum

corelibraries-devexpress-dot-xtracharts-44463419.md

latest4.8 KB
Original Source

ChartRangeControlClientSnapMode Enum

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

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
[ResourceFinder(typeof(XtraChartsResFinder), "PropertyNamesRes")]
public enum ChartRangeControlClientSnapMode
vb
<ResourceFinder(GetType(XtraChartsResFinder), "PropertyNamesRes")>
Public Enum ChartRangeControlClientSnapMode

Members

NameDescription
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.

| | 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.

| | 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.

|

The following properties accept/return ChartRangeControlClientSnapMode values:

LibraryRelated API Members
Cross-Platform Class LibraryChartRangeControlClientGridOptions.SnapMode
WinForms ControlsChartRangeControlClientGridOptionsModel.SnapMode

Remarks

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

See Also

DevExpress.XtraCharts Namespace