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

DateTimeOptions Class

Contains specific settings which define the representation of date-time values for display purposes within a chart control.

Namespace: DevExpress.Xpf.Charts

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

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Charts, DevExpress.Wpf.Charts

Declaration

public class DateTimeOptions :
    ChartDependencyObject,
    IDateTimeOptions

The following members return DateTimeOptions objects:

Remarks

The DateTimeOptions class contains settings which specify the display representation of date-time values within a chart control.

An object of the DateTimeOptions type is available via the Axis.DateTimeOptions, PointOptions.ArgumentDateTimeOptions and PointOptions.ValueDateTimeOptions properties.

Example

The following example demonstrates how to modify the DateTimeOptions.Format property value in XAML.

View Example

<dxc:XYDiagram2D.AxisX>
    <dxc:AxisX2D>
        <dxc:AxisX2D.Label>
            <dxc:AxisLabel TextPattern="{}{A:MMMM d}"/>
        </dxc:AxisX2D.Label>
    </dxc:AxisX2D>
</dxc:XYDiagram2D.AxisX>
See Also