Skip to main content

ManualDateTimeScaleOptions.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.v14.2.dll

#Declaration

[XtraSerializableProperty]
public DateTimeGridAlignment GridAlignment { get; set; }

#Property Value

Type Description
DateTimeGridAlignment

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

#Remarks

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

GridAlignment = Month, MeasureUnit=Day GridAlignment = Year, MeasureUnit=Day
GridAlignment_Month GridAlignment_Year

To maintain date-time values at different detail levels, use the ManualDateTimeScaleOptions.MeasureUnit property.

See Also