TextAnnotation
Define uma anotação de Texto, que pode ser usada para colocar rótulos somente para leitura ou caixas de texto de leitura- escrita no pai UltrachartSurface
Herda de: AnchorPointAnnotation
Construtores
public TextAnnotation()
textAnnotation = TextAnnotation()
Inicializa uma nova instância da classe TextAnnotation.
Propriedades
public CornerRadius CornerRadius { get; set; }
value = textAnnotation.CornerRadius
textAnnotation.CornerRadius = value
Obtém ou define o CornerRadius do TextAnnotation
public string Text { get; set; }
value = textAnnotation.Text
textAnnotation.Text = value
Obtém ou define o Texto do TextAnnotation
public TextAlignment TextAlignment { get; set; }
value = textAnnotation.TextAlignment
textAnnotation.TextAlignment = value
Obtém ou define o TextAlignment
private Stretch TextStretch { get; set; }
value = textAnnotation.TextStretch
textAnnotation.TextStretch = value
Obtém ou define como o texto se estende para encher o seu recipiente. Aplicável se as propriedades X1, Y1, X2, Y2 estiverem todas definidas, caso contrário o texto será uniforme
Métodos
protected override void FocusInputTextArea()
textAnnotation.FocusInputTextArea()
Foca a área de entrada de texto na TextAnnotation
public override bool IsPointWithinBounds(Point point)
result = textAnnotation.IsPointWithinBounds(point)
Retorna true se o Ponto estiver dentro dos limites do elemento IHitTestable atual
- point
- O ponto a testar
Retorna: verdadeiro se o Ponto estiver dentro dos limites
public override void OnApplyTemplate()
textAnnotation.OnApplyTemplate()
Quando substituído em uma classe derivada, é invocado sempre que o código de aplicação ou processos internos chamar ApplyTemplate.
protected override void RemoveFocusInputTextArea()
textAnnotation.RemoveFocusInputTextArea()
Remover o foco da área de texto de entrada. Aplicável apenas para anotação de texto e etiqueta
Campos
public static readonly DependencyProperty CornerRadiusProperty
value = TextAnnotation.CornerRadiusProperty
Define CornerRadius DependencyProperty @
public static readonly DependencyProperty TextAlignmentProperty
value = TextAnnotation.TextAlignmentProperty
Define TextAlignment DependencyProperty @
public static readonly DependencyProperty TextProperty
value = TextAnnotation.TextProperty
Define o Texto DependencyProperty
public static readonly DependencyProperty TextStretchProperty
value = TextAnnotation.TextStretchProperty
Define TextStretch DependencyProperty @