DateTimeOptions.Format Property

Gets or sets a value that specifies the form of date-time values' representation.

Namespace: DevExpress.Xpf.Charts

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

Declaration

public DateTimeFormat Format { get; set; }
Public Property Format As DateTimeFormat

Property Value

Type Description
DateTimeFormat

A DateTimeFormat enumeration value.

Property Paths

You can access this nested property as listed below:

Object Type Path to Format
PointOptions
PointOptions

Remarks

Use the Format property, to define the appropriate format for date-time values representation in the axis labels, series point labels or in the legend.

If the Format property is set to DateTimeFormat.Custom, the DateTimeOptions.FormatString property is used to determine the date-time format.

Examples

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

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