Skip to main content

NumericScaleOptions.GridAlignment Property

Gets or sets the numeric measure unit to which the beginning of an axis’ gridlines and labels should be aligned.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v24.1.dll

NuGet Package: DevExpress.Charts

Declaration

[NonTestableProperty]
[XtraSerializableProperty]
public NumericGridAlignment GridAlignment { get; set; }

Property Value

Type Description
NumericGridAlignment

A NumericGridAlignment enumeration value that represents the measurement unit to which the beginning of an axis’s gridlines and labels should be aligned.

Available values:

Name Description
Ones

Specifies ones as the numeric unit to which axis gridlines should be aligned.

Tens

Specifies tens as the numeric unit to which axis gridlines should be aligned.

Hundreds

Specifies hundreds as the numeric unit to which axis gridlines should be aligned.

Thousands

Specifies thousands as the numeric unit to which axis gridlines should be aligned.

Millions

Specifies millions as the numeric unit to which axis gridlines should be aligned.

Billions

Specifies billions as the numeric unit to which axis gridlines should be aligned.

Custom

The numeric unit to which axis gridlines should be aligned is specified by the NumericScaleOptions.CustomGridAlignment property.

Property Paths

You can access this nested property as listed below:

Object Type Path to GridAlignment
AxisBase
.NumericScaleOptions .GridAlignment

Remarks

This property is available when the SeriesBase.ArgumentScaleType is set to either Auto or Numeric, the SeriesBase.ValueScaleType property is set to Numeric, and the ScaleOptionsBase.ScaleMode property is set to Manual.

To maintain numeric values at different detail levels, use the NumericScaleOptions.MeasureUnit property.

See Also