NumericLabelProvider

StockSharp.Xaml.Charting.Visuals.Axes

Die NumericLabelFormatter ist ein Durchgang, der die TextFormatting und CursorTextFormatting verwendet, um Achsen- und Cursor-Etiketttexte zu formatieren.

Erbt von: LabelProviderBase

Methoden

CreateDataContext
public override ITickLabelViewModel CreateDataContext(IComparable dataValue)
result = numericLabelProvider.CreateDataContext(dataValue)

Erstellt eine ITickLabelViewModel-Instanz, basierend auf dem eingegebenen Datenwert. Aufruft IComparable auf, um den eingegebenen Datenwert zu formatieren.

dataValue
Der Data-Value to Format
FormatCursorLabel
public override string FormatCursorLabel(IComparable dataValue, bool hitTest)
result = numericLabelProvider.FormatCursorLabel(dataValue, hitTest)

Formatiert ein Label für den Cursor aus dem angegebenen Datenwert, der in

dataValue
Der Data-Value to Format
hitTest
Cursor-Treffertest.

Rückgabe: Die formatierte Cursor-Label-String

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

Formatiert ein Label für die Achse aus dem angegebenen Datenwert, der übergeben wurde

dataValue
Der Data-Value to Format

Rückgabe: Der formatierte Label String

UpdateDataContext
public override ITickLabelViewModel UpdateDataContext(ITickLabelViewModel labelDataContext, IComparable dataValue)
result = numericLabelProvider.UpdateDataContext(labelDataContext, dataValue)

Aktualisiert bestehende ITickLabelViewModel, basierend auf dem eingegebenen Datenwert. Aufruft IComparable auf, um den eingegebenen Datenwert zu formatieren.

labelDataContext
Die Instanz zum Aktualisieren
dataValue
Der Data-Value to Format