NumericLabelProvider
StockSharp.Xaml.Charting.Visuals.Axes
NumericLabelFormatterはTextFormattingとCursorTextFormattingのプロパティを使用して、軸とカーソルラベルテキストをフォーマットするパススルーです。
継承元: LabelProviderBase
メソッド
CreateDataContext
public override ITickLabelViewModel CreateDataContext(IComparable dataValue)
result = numericLabelProvider.CreateDataContext(dataValue)
渡されたデータ値に基づいて、ITickLabelViewModelインスタンスを作成します。IComparable を呼び出すと、指定したデータ値が渡された形式を書けます。
- dataValue
- データ値がフォーマットされる
FormatCursorLabel
public override string FormatCursorLabel(IComparable dataValue, bool hitTest)
result = numericLabelProvider.FormatCursorLabel(dataValue, hitTest)
カーソルのラベルをフォーマットします。指定されたデータ値から渡された値から
- dataValue
- データ値がフォーマットされる
- hitTest
- カーソルの衝突テスト。
戻り値: 整形されたカーソルラベル文字列
FormatLabel
public override string FormatLabel(IComparable dataValue)
result = numericLabelProvider.FormatLabel(dataValue)
指定したデータ値から渡された軸のラベルを書式化
- dataValue
- データ値がフォーマットされる
戻り値: フォーマットされたラベルの文字列
UpdateDataContext
public override ITickLabelViewModel UpdateDataContext(ITickLabelViewModel labelDataContext, IComparable dataValue)
result = numericLabelProvider.UpdateDataContext(labelDataContext, dataValue)
渡されたデータ値に基づいて、既存の@ITickLabelViewModelをアップデートします。 指定したデータ値が渡された形式をIComparableに呼びます。
- labelDataContext
- 更新するインスタンス
- dataValue
- データ値がフォーマットされる