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
データ値がフォーマットされる

戻り値: フォーマットされたラベルの文字列