Back to Devexpress

ContinuousDateTimeScaleOptions.AutoGrid Property

wpf-devexpress-dot-xpf-dot-charts-dot-continuousdatetimescaleoptions-ee7e2c4e.md

latest3.5 KB
Original Source

ContinuousDateTimeScaleOptions.AutoGrid Property

Gets or sets a value that specifies whether the spacing of grid lines is calculated automatically based upon the major tickmarks of the axis.

Namespace : DevExpress.Xpf.Charts

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

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public bool AutoGrid { get; set; }
vb
Public Property AutoGrid As Boolean

Property Value

TypeDescription
Boolean

true, if grid spacing is performed automatically; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to AutoGrid
AxisY2D

.DateTimeScaleOptions .AutoGrid

| | AxisY3D |

.DateTimeScaleOptions .AutoGrid

| | CircularAxisY2D |

.DateTimeScaleOptions .AutoGrid

|

Remarks

The AutoGrid property is tightly interrelated to the ManualDateTimeScaleOptions.GridSpacing property. Changing the value of one property affects the other. By default, the AutoGrid property is set to true and the grid line spacing is calculated automatically.

The following images demonstrate how the AutoGrid property works.

|

AutoGrid = true,

GridSpacing=4

|

AutoGrid = false,

GridSpacing=1

| | --- | --- | |

|

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AutoGrid 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#L43

xml
<dxc:ContinuousDateTimeScaleOptions WorkdaysOnly="True"
                                        AutoGrid="True"/>
</dxc:AxisX2D.DateTimeScaleOptions>

See Also

ContinuousDateTimeScaleOptions Class

ContinuousDateTimeScaleOptions Members

DevExpress.Xpf.Charts Namespace