AnnotationLabel

StockSharp.Xaml.Charting.Visuals.Annotations

Define um AnnotationLabel que pode ser usado em HorizontalLineAnnotation e VerticalLineAnnotation instâncias

Herda de: Control

Construtores

AnnotationLabel
public AnnotationLabel()
annotationLabel = AnnotationLabel()

Inicializa uma nova instância da classe AnnotationLabel.

Propriedades

AxisLabelStyle
public Style AxisLabelStyle { get; set; }
value = annotationLabel.AxisLabelStyle
annotationLabel.AxisLabelStyle = value

Obtém ou define um estilo para aplicar à etiqueta do Eixo

CanEditText
public bool CanEditText { get; set; }
value = annotationLabel.CanEditText
annotationLabel.CanEditText = value

Obtém ou define se o texto na etiqueta é editável

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

Obtém ou define o CornerRadius do elemento Rótulo

IsAxisLabel
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@

LabelPlacement
public LabelPlacement LabelPlacement { get; set; }
value = annotationLabel.LabelPlacement
annotationLabel.LabelPlacement = value

Obtém ou define o LabelPlacement

LabelStyle
public Style LabelStyle { get; set; }
value = annotationLabel.LabelStyle
annotationLabel.LabelStyle = value

Obtém ou define um estilo para aplicar à etiqueta

ParentAnnotation
public LineAnnotationWithLabelsBase ParentAnnotation { get; set; }
value = annotationLabel.ParentAnnotation
annotationLabel.ParentAnnotation = value

Obtém ou define o pai LineAnnotationWithLabelsBase a que esta etiqueta está ligada

RotationAngle
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

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

Obtém ou define o Texto da etiqueta

TextFormatting
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

GetAndAssertTemplateChild``1
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

OnApplyTemplate
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

AxisLabelStyleProperty
public static readonly DependencyProperty AxisLabelStyleProperty
value = AnnotationLabel.AxisLabelStyleProperty

Define AxisLabel DependnecyProperty @

CanEditTextProperty
public static readonly DependencyProperty CanEditTextProperty
value = AnnotationLabel.CanEditTextProperty

Define CanEditText DependnecyProperty @

CornerRadiusProperty
public static readonly DependencyProperty CornerRadiusProperty
value = AnnotationLabel.CornerRadiusProperty

Define CornerRadius DependnecyProperty @

LabelPlacementProperty
public static readonly DependencyProperty LabelPlacementProperty
value = AnnotationLabel.LabelPlacementProperty

Define LabelPlacement DependnecyProperty @

LabelStyleProperty
public static readonly DependencyProperty LabelStyleProperty
value = AnnotationLabel.LabelStyleProperty

Define LabelStyle DependnecyProperty @

RotationAngleProperty
public static readonly DependencyProperty RotationAngleProperty
value = AnnotationLabel.RotationAngleProperty

Define RotationAngle DependnecyProperty @

TextFormattingProperty
public static readonly DependencyProperty TextFormattingProperty
value = AnnotationLabel.TextFormattingProperty

Define TextFormatting DependnecyProperty @

TextProperty
public static readonly DependencyProperty TextProperty
value = AnnotationLabel.TextProperty

Define o Texto DependnecyProperty