TextAnnotation

StockSharp.Xaml.Charting.Visuals.Annotations

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

TextAnnotation
public TextAnnotation()
textAnnotation = TextAnnotation()

Inicializa uma nova instância da classe TextAnnotation.

Propriedades

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

Obtém ou define o CornerRadius do TextAnnotation

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

Obtém ou define o Texto do TextAnnotation

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

Obtém ou define o TextAlignment

TextStretch
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

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

Foca a área de entrada de texto na TextAnnotation

IsPointWithinBounds
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

OnApplyTemplate
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.

RemoveFocusInputTextArea
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

CornerRadiusProperty
public static readonly DependencyProperty CornerRadiusProperty
value = TextAnnotation.CornerRadiusProperty

Define CornerRadius DependencyProperty @

TextAlignmentProperty
public static readonly DependencyProperty TextAlignmentProperty
value = TextAnnotation.TextAlignmentProperty

Define TextAlignment DependencyProperty @

TextProperty
public static readonly DependencyProperty TextProperty
value = TextAnnotation.TextProperty

Define o Texto DependencyProperty

TextStretchProperty
public static readonly DependencyProperty TextStretchProperty
value = TextAnnotation.TextStretchProperty

Define TextStretch DependencyProperty @