DateTimeLabelProvider

StockSharp.Xaml.Charting.Visuals.Axes

DateTimeLabelFormatter是一种通过,它使用TextFormatting和CursorTextFormatting属性来格式化轴和光标标签文本。它也使用SubDayTextFormatting属性来改变日期-距离切换到日内时的文本格式化。

继承自: LabelProviderBase

方法

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

格式化光标的标签,从指定的数据值中转出

dataValue
数据值到格式
hitTest
克克击出试.

返回值: 格式化光标标签字符串

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

格式化从指定的数据值中传递到的轴的标签

dataValue
数据值到格式

返回值: 格式化标签字符串