DateTimeLabelProvider

StockSharp.Xaml.Charting.Visuals.Axes

The DateTimeLabelFormatter is a pass-through which uses the TextFormatting and CursorTextFormatting properties to format axis and cursor label texts. It also uses the SubDayTextFormatting property to alter text-formatting when the date-range switches to intra-day

Inherits: LabelProviderBase

Methods

FormatCursorLabel
public override string FormatCursorLabel(IComparable dataValue, bool hitTest)
result = dateTimeLabelProvider.FormatCursorLabel(dataValue, hitTest)

Formats a label for the cursor, from the specified data-value passed in

dataValue
The data-value to format
hitTest
Cursor hit test.

Returns: The formatted cursor label string

FormatLabel
public override string FormatLabel(IComparable dataValue)
result = dateTimeLabelProvider.FormatLabel(dataValue)

Formats a label for the axis from the specified data-value passed in

dataValue
The data-value to format

Returns: The formatted label string