TextAnnotation
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
public TextAnnotation()
textAnnotation = TextAnnotation()
Initialisiert eine neue Instanz der TextAnnotation Klasse.
Eigenschaften
public CornerRadius CornerRadius { get; set; }
value = textAnnotation.CornerRadius
textAnnotation.CornerRadius = value
Bekommt oder setzt die CornerRadius des TextAnnotation
public string Text { get; set; }
value = textAnnotation.Text
textAnnotation.Text = value
Bekommt oder setzt den Text des TextAnnotation
public TextAlignment TextAlignment { get; set; }
value = textAnnotation.TextAlignment
textAnnotation.TextAlignment = value
Bekommt oder setzt die TextAlignment
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
protected override void FocusInputTextArea()
textAnnotation.FocusInputTextArea()
Konzentriert den Texteingabebereich auf TextAnnotation
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
public override void OnApplyTemplate()
textAnnotation.OnApplyTemplate()
Wenn in einer abgeleiteten Klasse überschrieben, wird aufgerufen, wenn Anwendungscode oder interne Prozesse ApplyTemplate aufrufen.
protected override void RemoveFocusInputTextArea()
textAnnotation.RemoveFocusInputTextArea()
Fokus aus dem Eingabetextbereich entfernen; nur für Text- und Label-Annotation anwendbar
Felder
public static readonly DependencyProperty CornerRadiusProperty
value = TextAnnotation.CornerRadiusProperty
Definiert die CornerRadiusDependencyProperty
public static readonly DependencyProperty TextAlignmentProperty
value = TextAnnotation.TextAlignmentProperty
Definiert die TextAlignmentDependencyProperty
public static readonly DependencyProperty TextProperty
value = TextAnnotation.TextProperty
Definiert den Text DependencyProperty
public static readonly DependencyProperty TextStretchProperty
value = TextAnnotation.TextStretchProperty
Definiert die TextStretchDependencyProperty