Skip to main content
A newer version of this page is available. .

ContinuousDateTimeScaleOptions.GridAlignment Property

Gets or sets the date-time measure unit to which the beginning of the grid lines and axis labels of an axis should be aligned.

Namespace: DevExpress.Xpf.Charts

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

NuGet Package: DevExpress.Wpf.Charts

Declaration

public DateTimeGridAlignment GridAlignment { get; set; }

Property Value

Type Description
DateTimeGridAlignment

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

Available values:

Name Description
Millisecond

Specifies millisecond as the date-time unit to which axis grid lines should be aligned.

Second

Specifies second as the date-time unit to which axis grid lines should be aligned.

Minute

Specifies minute as the date-time unit to which axis grid lines should be aligned.

Hour

Specifies hour as the date-time unit to which axis grid lines should be aligned.

Day

Specifies day as the date-time unit to which axis grid lines should be aligned.

Week

Specifies week as the date-time unit to which axis grid lines should be aligned.

Month

Specifies month as the date-time unit to which axis grid lines should be aligned.

Quarter

Specifies a quarter of a year as the date-time unit to which axis grid lines should be aligned.

Year

Specifies year as the date-time unit to which axis grid lines should be aligned.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to GridAlignment
WPF Controls AxisY3D
.DateTimeScaleOptions .GridAlignment
Silverlight Controls AxisY2D
.DateTimeScaleOptions .GridAlignment
CircularAxisY2D
.DateTimeScaleOptions .GridAlignment
PolarAxisY2D
.DateTimeScaleOptions .GridAlignment
RadarAxisY2D
.DateTimeScaleOptions .GridAlignment
SecondaryAxisY2D
.DateTimeScaleOptions .GridAlignment

Remarks

This property is available when one of the DateTimeScaleOptions properties (e.g., AxisX2D.DateTimeScaleOptions property) is set to ContinuousDateTimeScaleOptions.

Note that the date-time data aggregation is not supported in Continuous scale mode.

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

See Also