TextAnnotation

StockSharp.Xaml.Charting.Visuals.Annotations

Definiert eine Text-Annotation, die verwendet werden kann, um schreibgeschützte Etiketten oder Textboxen zu lesen und zu schreiben auf dem übergeordneten UltrachartSurface

Erbt von: AnchorPointAnnotation

Konstruktoren

TextAnnotation
public TextAnnotation()
textAnnotation = TextAnnotation()

Initialisiert eine neue Instanz der TextAnnotation Klasse.

Eigenschaften

CornerRadius
public CornerRadius CornerRadius { get; set; }
value = textAnnotation.CornerRadius
textAnnotation.CornerRadius = value

Bekommt oder setzt die CornerRadius des TextAnnotation

Text
public string Text { get; set; }
value = textAnnotation.Text
textAnnotation.Text = value

Bekommt oder setzt den Text des TextAnnotation

TextAlignment
public TextAlignment TextAlignment { get; set; }
value = textAnnotation.TextAlignment
textAnnotation.TextAlignment = value

Bekommt oder setzt die TextAlignment

TextStretch
private Stretch TextStretch { get; set; }
value = textAnnotation.TextStretch
textAnnotation.TextStretch = value

Gibt oder legt fest, wie Text sich ausdehnt, um seinen Container zu füllen.

Methoden

FocusInputTextArea
protected override void FocusInputTextArea()
textAnnotation.FocusInputTextArea()

Konzentriert den Texteingabebereich auf TextAnnotation

IsPointWithinBounds
public override bool IsPointWithinBounds(Point point)
result = textAnnotation.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

OnApplyTemplate
public override void OnApplyTemplate()
textAnnotation.OnApplyTemplate()

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

RemoveFocusInputTextArea
protected override void RemoveFocusInputTextArea()
textAnnotation.RemoveFocusInputTextArea()

Fokus aus dem Eingabetextbereich entfernen; nur für Text- und Label-Annotation anwendbar

Felder

CornerRadiusProperty
public static readonly DependencyProperty CornerRadiusProperty
value = TextAnnotation.CornerRadiusProperty

Definiert die CornerRadiusDependencyProperty

TextAlignmentProperty
public static readonly DependencyProperty TextAlignmentProperty
value = TextAnnotation.TextAlignmentProperty

Definiert die TextAlignmentDependencyProperty

TextProperty
public static readonly DependencyProperty TextProperty
value = TextAnnotation.TextProperty

Definiert den Text DependencyProperty

TextStretchProperty
public static readonly DependencyProperty TextStretchProperty
value = TextAnnotation.TextStretchProperty

Definiert die TextStretchDependencyProperty