ChartDateTimeFormatCategory Enumeration
Chart Pro ActiveX Control v24.0
Description
Defines the various DateTime formats available to format labels in the chart.
Members
| Member | Description |
|---|---|
xtpChartDateTimeGeneral |
Standard formatting. |
xtpChartDateTimeLongDate |
Long date format, e.g. Friday, January 01, 2012. |
xtpChartDateTimeShortDate |
Short date format, e.g. 1/1/2012. |
xtpChartDateTimeLongTime |
Long time format, e.g. 12:00:00 AM. |
xtpChartDateTimeShortTime |
Short time format, e.g. 12:00 AM. |
xtpChartDateTimeMonthAndDay |
Month and Day format, e.g. January 26. |
xtpChartDateTimeMonthAndYear |
Month and Year format, e.g. January 2012. |
xtpChartDateTimeCustom |
Uses a custom format specified in DateTimeFormat. |
You can also view the enumeration in code form:
enum ChartDateTimeFormatCategory
{
xtpChartDateTimeGeneral,
xtpChartDateTimeLongDate,
xtpChartDateTimeShortDate,
xtpChartDateTimeLongTime,
xtpChartDateTimeShortTime,
xtpChartDateTimeMonthAndDay,
xtpChartDateTimeMonthAndYear,
xtpChartDateTimeCustom
};
Remarks
DateTimeCategory uses values from the ChartDateTimeFormatCategory enumeration to tell the chart how to handle the formatting of DateTime values in labels. The category must be specified so the correct formatting is applied to the value. This is used when the ArgumentScaleType is set to xtpChartScaleDateTime. The formatting can be set to General, Short Date, Long Date, Short Time, Long Time, Month and Day, Month and Year, or Custom. For Custom, the format uses DateTimeFormat.
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.