AnnotationLabel

StockSharp.Xaml.Charting.Visuals.Annotations

Define un AnnotationLabel que puede ser utilizado en HorizontalLineAnnotation y VerticalLineAnnotation

Hereda de: Control

Constructores

AnnotationLabel
public AnnotationLabel()
annotationLabel = AnnotationLabel()

Inicia una nueva instancia de la clase AnnotationLabel.

Propiedades

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

Obtiene o establece un estilo para aplicar al Eje Label

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

Obtiene o establece si el texto en la etiqueta es editable

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

Obtiene o establece el CornerRadius del elemento Label

IsAxisLabel
internal bool IsAxisLabel { get; }
value = annotationLabel.IsAxisLabel

Retorno Cierto si LabelPlacement == LabelPlacement.Axis o si ParentAnnotation.ResolveAutoPlacement () == LabelPlacement.Axis en caso de que LabelPlacement == LabelPlacement.Auto

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

Consigue o establece el LabelPlacement

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

Obtiene o establece un estilo para aplicar a la etiqueta

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

Obtiene o establece el padre LineAnnotationWithLabelsBase que esta etiqueta está adjunta a

RotationAngle
public double RotationAngle { get; set; }
value = annotationLabel.RotationAngle
annotationLabel.RotationAngle = value

Obtiene o establece el ángulo, en grados, de rotación en sentido de reloj

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

Obtiene o establece el Texto de la etiqueta

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

Consigue o establece el TextFormatting para usar en la etiqueta, cuando la propiedad Text está destinada a un valor de datos. Esto funciona de manera similar a la propiedad AxisBase@TextFormatting

Métodos

GetAndAssertTemplateChild``1
protected T GetAndAssertTemplateChild<T>(string childName)
result = annotationLabel.GetAndAssertTemplateChild(childName)

Consigue el TemplateChild por el nombre especificado y los moldes para escribir , afirmando que el resultado no es null

childName
Nombre de la parte plantilla.

Devuelve: La instancia de la parte de la plantilla

OnApplyTemplate
public override void OnApplyTemplate()
annotationLabel.OnApplyTemplate()

Cuando se sobrescribe en una clase derivada, se invoca cuando el código de aplicación o los procesos internos (como un pase de diseño de reconstrucción) llame a ApplyTemplate. En términos más simples, esto significa que el método se llama justo antes de que un elemento UI se muestre en una aplicación. Para más información, consulte Observaciones.

Campos

AxisLabelStyleProperty
public static readonly DependencyProperty AxisLabelStyleProperty
value = AnnotationLabel.AxisLabelStyleProperty

Define el AxisLabel@DependnecyProperty@

CanEditTextProperty
public static readonly DependencyProperty CanEditTextProperty
value = AnnotationLabel.CanEditTextProperty

Define el CanEditText@DependnecyProperty@

CornerRadiusProperty
public static readonly DependencyProperty CornerRadiusProperty
value = AnnotationLabel.CornerRadiusProperty

Define el CornerRadius@DependnecyProperty@

LabelPlacementProperty
public static readonly DependencyProperty LabelPlacementProperty
value = AnnotationLabel.LabelPlacementProperty

Define el LabelPlacement@DependnecyProperty@

LabelStyleProperty
public static readonly DependencyProperty LabelStyleProperty
value = AnnotationLabel.LabelStyleProperty

Define el LabelStyle@DependnecyProperty@

RotationAngleProperty
public static readonly DependencyProperty RotationAngleProperty
value = AnnotationLabel.RotationAngleProperty

Define el RotationAngle@DependnecyProperty@

TextFormattingProperty
public static readonly DependencyProperty TextFormattingProperty
value = AnnotationLabel.TextFormattingProperty

Define el TextFormatting@DependnecyProperty@

TextProperty
public static readonly DependencyProperty TextProperty
value = AnnotationLabel.TextProperty

Define el texto DependnecyProperty