AnnotationLabel
Define um AnnotationLabel que pode ser usado em HorizontalLineAnnotation e VerticalLineAnnotation instâncias
Herda de: Control
Construtores
public AnnotationLabel()
annotationLabel = AnnotationLabel()
Inicializa uma nova instância da classe AnnotationLabel.
Propriedades
public Style AxisLabelStyle { get; set; }
value = annotationLabel.AxisLabelStyle
annotationLabel.AxisLabelStyle = value
Obtém ou define um estilo para aplicar à etiqueta do Eixo
public bool CanEditText { get; set; }
value = annotationLabel.CanEditText
annotationLabel.CanEditText = value
Obtém ou define se o texto na etiqueta é editável
public CornerRadius CornerRadius { get; set; }
value = annotationLabel.CornerRadius
annotationLabel.CornerRadius = value
Obtém ou define o CornerRadius do elemento Rótulo
internal bool IsAxisLabel { get; }
value = annotationLabel.IsAxisLabel
Retorna Verdadeiro se LabelPlacement == LabelPlacement.Axis ou se ParentAnnotation.ResolveAutoPlacement() == LabelPlacement.Axis@ no caso de LabelPlacement@ == LabelPlacement.Auto@
public LabelPlacement LabelPlacement { get; set; }
value = annotationLabel.LabelPlacement
annotationLabel.LabelPlacement = value
Obtém ou define o LabelPlacement
public Style LabelStyle { get; set; }
value = annotationLabel.LabelStyle
annotationLabel.LabelStyle = value
Obtém ou define um estilo para aplicar à etiqueta
public LineAnnotationWithLabelsBase ParentAnnotation { get; set; }
value = annotationLabel.ParentAnnotation
annotationLabel.ParentAnnotation = value
Obtém ou define o pai LineAnnotationWithLabelsBase a que esta etiqueta está ligada
public double RotationAngle { get; set; }
value = annotationLabel.RotationAngle
annotationLabel.RotationAngle = value
Obtém ou define o ângulo, em graus, de rotação no sentido dos ponteiros do relógio
public string Text { get; set; }
value = annotationLabel.Text
annotationLabel.Text = value
Obtém ou define o Texto da etiqueta
public string TextFormatting { get; set; }
value = annotationLabel.TextFormatting
annotationLabel.TextFormatting = value
Obtém ou define o TextFormatting a usar na etiqueta, quando a propriedade Texto está ligada a um Valor de Dados. Isto funciona de forma semelhante à propriedade AxisBase @ TextFormatting TextFormatting @
Métodos
protected T GetAndAssertTemplateChild<T>(string childName)
result = annotationLabel.GetAndAssertTemplateChild(childName)
Obtém o TemplateChild pelo nome especificado e elenco para digitar, afirmando que o resultado não é nulo
- childName
- Nome da parte com modelo.
Retorna: A instância da parte do modelo
public override void OnApplyTemplate()
annotationLabel.OnApplyTemplate()
Quando sobreposto em uma classe derivada, é invocado sempre que o código de aplicação ou processos internos (como um passe de layout de reconstrução) chamar ApplyTemplate. Em termos mais simples, isto significa que o método é chamado pouco antes de um elemento UI ser exibido em uma aplicação. Para mais informações, consulte Observações.
Campos
public static readonly DependencyProperty AxisLabelStyleProperty
value = AnnotationLabel.AxisLabelStyleProperty
Define AxisLabel DependnecyProperty @
public static readonly DependencyProperty CanEditTextProperty
value = AnnotationLabel.CanEditTextProperty
Define CanEditText DependnecyProperty @
public static readonly DependencyProperty CornerRadiusProperty
value = AnnotationLabel.CornerRadiusProperty
Define CornerRadius DependnecyProperty @
public static readonly DependencyProperty LabelPlacementProperty
value = AnnotationLabel.LabelPlacementProperty
Define LabelPlacement DependnecyProperty @
public static readonly DependencyProperty LabelStyleProperty
value = AnnotationLabel.LabelStyleProperty
Define LabelStyle DependnecyProperty @
public static readonly DependencyProperty RotationAngleProperty
value = AnnotationLabel.RotationAngleProperty
Define RotationAngle DependnecyProperty @
public static readonly DependencyProperty TextFormattingProperty
value = AnnotationLabel.TextFormattingProperty
Define TextFormatting DependnecyProperty @
public static readonly DependencyProperty TextProperty
value = AnnotationLabel.TextProperty
Define o Texto DependnecyProperty