Back to Devexpress

ContinuousNumericScaleOptions.GridSpacing Property

wpf-devexpress-dot-xpf-dot-charts-dot-continuousnumericscaleoptions.md

latest3.2 KB
Original Source

ContinuousNumericScaleOptions.GridSpacing Property

Gets or sets the numeric grid step in grid alignment units.

Namespace : DevExpress.Xpf.Charts

Assembly : DevExpress.Xpf.Charts.v25.2.dll

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public double GridSpacing { get; set; }
vb
Public Property GridSpacing As Double

Property Value

TypeDescription
Double

A Double value which specifies the numeric grid step.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to GridSpacing
AxisY2D

.NumericScaleOptions .GridSpacing

| | AxisY3D |

.NumericScaleOptions .GridSpacing

| | CircularAxisY2D |

.NumericScaleOptions .GridSpacing

| | ZAxis3D |

.NumericScaleOptions .GridSpacing

|

Remarks

This feature manages label placement along the axis.

By default, the GridSpacing is set to the default value, so the grid step is calculated automatically. To change the grid step interval for axis labeling, set the ContinuousNumericScaleOptions.AutoGrid to false , and specify the GridSpacing property value.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GridSpacing property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-bind-a-range-control-to-a-chart-control/CS/GoldPrices/MainWindow.xaml#L62

xml
<dxc:ContinuousNumericScaleOptions AutoGrid="False"
                                       GridSpacing="50"/>
</dxc:AxisY2D.NumericScaleOptions>

See Also

ContinuousNumericScaleOptions Class

ContinuousNumericScaleOptions Members

DevExpress.Xpf.Charts Namespace