Skip to main content

QualitativeScaleOptions.AutoGrid Property

Gets or sets the value specifying whether the alignment, spacing and offset of grid lines and major tickmarks should be calculated automatically.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v24.1.dll

NuGet Package: DevExpress.Wpf.Charts

Declaration

public bool AutoGrid { get; set; }

Property Value

Type Description
Boolean

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

Property Paths

You can access this nested property as listed below:

Object Type Path to AutoGrid
ArgumentAxis3D
AxisX2D
AxisX3D
RadarAxisX2D

Remarks

The AutoGrid property is tightly interrelated with the QualitativeScaleOptions.GridSpacing and QualitativeScaleOptions.GridOffset properties. 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;

AutoGrid = false;

GridSpacing = 4;

QualitativeScale-AutoGrid_true

QualitativeScale-AutoGrid_false

Note that if you need to define a custom grid interval, set the AutoGrid property to false, then change the value of the QualitativeScaleOptions.GridSpacing or QualitativeScaleOptions.GridOffset property.

See Also