Back to Devexpress

ChartRangeControlClientGridOptionsModel.SnapMode Property

windowsforms-devexpress-dot-xtracharts-dot-designer-dot-chartrangecontrolclientgridoptionsmodel-11b087ce.md

latest4.7 KB
Original Source

ChartRangeControlClientGridOptionsModel.SnapMode Property

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

Namespace : DevExpress.XtraCharts.Designer

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

NuGet Package : DevExpress.Win.Charts

Declaration

csharp
[PropertyForOptions]
public ChartRangeControlClientSnapMode SnapMode { get; set; }
vb
<PropertyForOptions>
Public Property SnapMode As ChartRangeControlClientSnapMode

Property Value

TypeDescription
ChartRangeControlClientSnapMode

The snap mode.

|

Available values:

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.

|

See Also

ChartRangeControlClientGridOptionsModel Class

ChartRangeControlClientGridOptionsModel Members

DevExpress.XtraCharts.Designer Namespace