LineAnnotationWithLabelsBase

StockSharp.Xaml.Charting.Visuals.Annotations

Bietet eine Basisklasse für HorizontalLineAnnotation, VerticalLineAnnotation

Erbt von: LineAnnotation

Konstruktoren

LineAnnotationWithLabelsBase
protected LineAnnotationWithLabelsBase()
lineAnnotationWithLabelsBase = LineAnnotationWithLabelsBase()

Initialisiert eine neue Instanz der LineAnnotationWithLabelsBase Klasse.

Eigenschaften

AnnotationLabels
public ObservableCollection<AnnotationLabel> AnnotationLabels { get; set; }
value = lineAnnotationWithLabelsBase.AnnotationLabels
lineAnnotationWithLabelsBase.AnnotationLabels = value

Bekommt oder legt eine Sammlung von Annotations-Etiketten fest

DefaultLabelValue
protected IComparable DefaultLabelValue { get; }
value = lineAnnotationWithLabelsBase.DefaultLabelValue

Bekommt oder legt Wert fest, an welche Etiketten gebunden sind

DefaultTextFormatting
protected string DefaultTextFormatting { get; }
value = lineAnnotationWithLabelsBase.DefaultTextFormatting

Bekommt den Standardwert für die Textformatierung

FormattedLabel
protected string FormattedLabel { get; }
value = lineAnnotationWithLabelsBase.FormattedLabel

Bekommt den formatierten Etikettenwert

LabelPlacement
public LabelPlacement LabelPlacement { get; set; }
value = lineAnnotationWithLabelsBase.LabelPlacement
lineAnnotationWithLabelsBase.LabelPlacement = value

Bekommt oder setzt Platzierung für das Standard-Label

LabelTextFormatting
public string LabelTextFormatting { get; set; }
value = lineAnnotationWithLabelsBase.LabelTextFormatting
lineAnnotationWithLabelsBase.LabelTextFormatting = value

Bekommt oder setzt Formatierungszeichenfolge, die auf alle Annotationsetiketten angewendet wird

LabelValue
public IComparable LabelValue { get; set; }
value = lineAnnotationWithLabelsBase.LabelValue
lineAnnotationWithLabelsBase.LabelValue = value

Bekommt oder setzt einen Wert für das Standard-Label

ShowLabel
public bool ShowLabel { get; set; }
value = lineAnnotationWithLabelsBase.ShowLabel
lineAnnotationWithLabelsBase.ShowLabel = value

Bekommt oder setzt den Wert, der angibt, ob das Standard-Label angezeigt wird oder nicht

Methoden

AddLabel
public AnnotationLabel AddLabel()
result = lineAnnotationWithLabelsBase.AddLabel()

Fügt neues Label zu AnnotationLabels

Rückgabe: Label, das erstellt wurde

ApplyPlacement
protected virtual void ApplyPlacement(AnnotationLabel label, LabelPlacement placement)
lineAnnotationWithLabelsBase.ApplyPlacement(label, placement)

Positioniert das AnnotationLabel mit dem Wert des LabelPlacement enum

label
Das Label soll platziert werden
placement
Argumente für die Platzierung
Attach
protected virtual void Attach(AnnotationLabel label)
lineAnnotationWithLabelsBase.Attach(label)

Intern aufgerufen, um ein AnnotationLabel an die aktuelle Instanz anzuhängen

label
Die AnnotationLabel @ zu befestigen
AttachLabels
protected void AttachLabels(IEnumerable<AnnotationLabel> labels)
lineAnnotationWithLabelsBase.AttachLabels(labels)

Fügt eine Sammlung von AnnotationLabel @ Instanzen zum LineAnnotationWithLabelsBase hinzu

labels
Die Sammlung von Labels zum Hinzufügen
Detach
protected virtual void Detach(AnnotationLabel label)
lineAnnotationWithLabelsBase.Detach(label)

Trennt das AnnotationLabel von dem aktuellen LineAnnotationWithLabelsBase

label
Das Etikett muss abgelöst werden
DetachLabels
protected void DetachLabels(IEnumerable<AnnotationLabel> labels)
lineAnnotationWithLabelsBase.DetachLabels(labels)

Entfernt eine Sammlung von AnnotationLabel Instanzen in die LineAnnotationWithLabelsBase

labels
Die Sammlung von Etiketten zu entfernen
GetSelectedCursor
protected override Cursor GetSelectedCursor()
result = lineAnnotationWithLabelsBase.GetSelectedCursor()

Bekommt den Cursor für die Annotation zu verwenden, wenn ausgewählt

GetUsedAxis
public abstract IAxis GetUsedAxis()
result = lineAnnotationWithLabelsBase.GetUsedAxis()

Gibt Achse zurück, die aktuelle Annotation zeigt Datenwert für

InvalidateLabel
public void InvalidateLabel(AnnotationLabel annotationLabel)
lineAnnotationWithLabelsBase.InvalidateLabel(annotationLabel)

Ungültiges Annotation Label

annotationLabel
Kennzeichnung für ungültig
IsPointWithinBounds
public override bool IsPointWithinBounds(Point point)
result = lineAnnotationWithLabelsBase.IsPointWithinBounds(point)

Gibt true zurück, wenn der Punkt innerhalb der Grenzen des aktuellen IHitTestable-Elements liegt

point
Der Punkt zum Testen

Rückgabe: Wahr, wenn der Punkt innerhalb der Grenzen liegt

MakeInvisible
protected override void MakeInvisible()
lineAnnotationWithLabelsBase.MakeInvisible()

Verbirgt aktuelle Instanz von LineAnnotationWithLabelsBase

MakeVisible
protected override void MakeVisible(AnnotationCoordinates coordinates)
lineAnnotationWithLabelsBase.MakeVisible(coordinates)

Verbirgt aktuelle Instanz von LineAnnotationWithLabelsBase

OnApplyTemplate
public override void OnApplyTemplate()
lineAnnotationWithLabelsBase.OnApplyTemplate()

Wenn in einer abgeleiteten Klasse überschrieben, wird aufgerufen, wenn Anwendungscode oder interne Prozesse ApplyTemplate aufrufen.

OnAttached
public override void OnAttached()
lineAnnotationWithLabelsBase.OnAttached()

Aufrufen, wenn die Annotation an die übergeordnete Oberfläche angehängt ist

OnAxisAlignmentChanged
protected override void OnAxisAlignmentChanged(IAxis axis, AxisAlignment oldAlignment)
lineAnnotationWithLabelsBase.OnAxisAlignmentChanged(axis, oldAlignment)

Virtuelle Methode zum Überschreiben, wenn Sie benachrichtigt werden möchten, dass sich der AxisAlignment geändert hat

axis
oldAlignment
OnXAxesCollectionChanged
protected override void OnXAxesCollectionChanged(object sender, NotifyCollectionChangedEventArgs args)
lineAnnotationWithLabelsBase.OnXAxesCollectionChanged(sender, args)

Virtuelle Methode zum Überschreiben, wenn Sie benachrichtigt werden möchten, dass sich die übergeordnete XAxes geändert hat

OnXAxisIdChanged
protected override void OnXAxisIdChanged()
lineAnnotationWithLabelsBase.OnXAxisIdChanged()

Virtuelle Methode zum Überschreiben, wenn Sie benachrichtigt werden möchten, dass sich der XAxisId geändert hat

OnYAxesCollectionChanged
protected override void OnYAxesCollectionChanged(object sender, NotifyCollectionChangedEventArgs args)
lineAnnotationWithLabelsBase.OnYAxesCollectionChanged(sender, args)

Virtuelle Methode zum Überschreiben, wenn Sie benachrichtigt werden möchten, dass sich die übergeordneten YAxes geändert haben

OnYAxisIdChanged
protected override void OnYAxisIdChanged()
lineAnnotationWithLabelsBase.OnYAxisIdChanged()

Virtuelle Methode zum Überschreiben, wenn Sie benachrichtigt werden möchten, dass sich der YAxisId geändert hat

PlaceAxisLabel
protected virtual void PlaceAxisLabel(IAxis axis, AnnotationLabel axisLabel, Point offset)
lineAnnotationWithLabelsBase.PlaceAxisLabel(axis, axisLabel, offset)

Platzieren Sie ModifierAxisCanvas @ der entsprechenden Achse an der Position.

TryPlaceAxisLabels
protected void TryPlaceAxisLabels(Point offset)
lineAnnotationWithLabelsBase.TryPlaceAxisLabels(offset)

Versuchen Sie, alle Annotationsetiketten auf ModifierAxisCanvas @ der entsprechenden Achse an der Position zu platzieren.

Felder

AnnotationLabelsProperty
public static readonly DependencyProperty AnnotationLabelsProperty
value = LineAnnotationWithLabelsBase.AnnotationLabelsProperty

Definiert die AnnotationLabelsEigenschaft

DefaultLabelValueProperty
protected internal static readonly DependencyProperty DefaultLabelValueProperty
value = LineAnnotationWithLabelsBase.DefaultLabelValueProperty

Definiert die DefaultLabelValueEigenschaft

DefaultTextFormattingProperty
protected static readonly DependencyProperty DefaultTextFormattingProperty
value = LineAnnotationWithLabelsBase.DefaultTextFormattingProperty

Definiert die DefaultTextFormattingEigenschaft

FormattedLabelProperty
public static readonly DependencyProperty FormattedLabelProperty
value = LineAnnotationWithLabelsBase.FormattedLabelProperty

Definiert die FormattedLabelEigenschaft

LabelPlacementProperty
public static readonly DependencyProperty LabelPlacementProperty
value = LineAnnotationWithLabelsBase.LabelPlacementProperty

Definiert die LabelPlacementEigenschaft

LabelTextFormattingProperty
public static readonly DependencyProperty LabelTextFormattingProperty
value = LineAnnotationWithLabelsBase.LabelTextFormattingProperty

Definiert die LabelTextFormattingEigenschaft

LabelValueProperty
public static readonly DependencyProperty LabelValueProperty
value = LineAnnotationWithLabelsBase.LabelValueProperty

Definiert die LabelValueEigenschaft

ShowLabelProperty
public static readonly DependencyProperty ShowLabelProperty
value = LineAnnotationWithLabelsBase.ShowLabelProperty

Definiert die ShowLabelEigenschaft