TextAnnotation
Define una anotación de texto, que puede utilizarse para colocar etiquetas de sólo lectura o escribir buzones de texto en el padre UltrachartSurface@
Hereda de: AnchorPointAnnotation
Constructores
public TextAnnotation()
textAnnotation = TextAnnotation()
Inicia una nueva instancia de la clase TextAnnotation.
Propiedades
public CornerRadius CornerRadius { get; set; }
value = textAnnotation.CornerRadius
textAnnotation.CornerRadius = value
Consigue o establece el CornerRadius@ de la TextAnnotation
public string Text { get; set; }
value = textAnnotation.Text
textAnnotation.Text = value
Obtiene o establece el Texto de la TextAnnotation
public TextAlignment TextAlignment { get; set; }
value = textAnnotation.TextAlignment
textAnnotation.TextAlignment = value
Consigue o establece el TextAlignment
private Stretch TextStretch { get; set; }
value = textAnnotation.TextStretch
textAnnotation.TextStretch = value
Obtiene o establece cómo el texto se estira para llenar su contenedor. Aplicable si las propiedades X1,Y1,X2,Y2 están establecidas, otro texto será uniforme
Métodos
protected override void FocusInputTextArea()
textAnnotation.FocusInputTextArea()
Enfoca la zona de entrada de texto en la TextAnnotation
public override bool IsPointWithinBounds(Point point)
result = textAnnotation.IsPointWithinBounds(point)
Devuelve la verdad si el Punto está dentro de los límites del elemento IHitTestable
- point
- El punto de prueba
Devuelve: verdadero si el Punto está dentro de los límites
public override void OnApplyTemplate()
textAnnotation.OnApplyTemplate()
Cuando se sobrescribe en una clase derivada, se invoca cuando el código de aplicación o los procesos internos llaman ApplyTemplate@.
protected override void RemoveFocusInputTextArea()
textAnnotation.RemoveFocusInputTextArea()
Eliminar el enfoque del área de texto de entrada. Aplicable sólo para la anotación de texto y etiqueta
Campos
public static readonly DependencyProperty CornerRadiusProperty
value = TextAnnotation.CornerRadiusProperty
Define el CornerRadius@DependencyProperty@
public static readonly DependencyProperty TextAlignmentProperty
value = TextAnnotation.TextAlignmentProperty
Define el TextAlignment@DependencyProperty@
public static readonly DependencyProperty TextProperty
value = TextAnnotation.TextProperty
Define el texto DependencyProperty
public static readonly DependencyProperty TextStretchProperty
value = TextAnnotation.TextStretchProperty
Define el TextStretch@DependencyProperty@