Back to Devexpress

DateTimeOptions.FormatString Property

corelibraries-devexpress-dot-xtracharts-dot-datetimeoptions-ba6a0ff9.md

latest2.1 KB
Original Source

DateTimeOptions.FormatString Property

Gets or sets the pattern for formatting date-time values.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
public string FormatString { get; set; }
vb
Public Property FormatString As String

Property Value

TypeDescription
String

A String value that represents the format pattern.

|

Remarks

When the DateTimeOptions.Format property is set to Custom , use the FormatString property, to specify a custom format for the date-time options (of axis labels, series point labels or the legend).

The following image demonstrates implementation of a quarterly formatting for the X-axis’ labels.

And, a monthly format is depicted below.

Standard date-time format specifiers for composing various format patterns are described in the Date and Time Format Strings topics in MSDN.

See Also

Format

DateTimeOptions Class

DateTimeOptions Members

DevExpress.XtraCharts Namespace