AnnotationLabel

StockSharp.Xaml.Charting.Visuals.Annotations

Definiert ein AnnotationLabel, das in HorizontalLineAnnotation und VerticalLineAnnotation Instanzen verwendet werden kann

Erbt von: Control

Konstruktoren

AnnotationLabel
public AnnotationLabel()
annotationLabel = AnnotationLabel()

Initialisiert eine neue Instanz der AnnotationLabel Klasse.

Eigenschaften

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

Bekommt oder legt einen Stil fest, der auf das Axis-Label angewendet werden soll

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

Gibt oder legt fest, ob der Text im Label editierbar ist

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

Bekommt oder setzt das CornerRadius des Label-Elements

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

Gibt True zurück, wenn LabelPlacement == LabelPlacement.Axis oder wenn ParentAnnotation.ResolveAutoPlacement() == LabelPlacement.Axis wenn LabelPlacement == LabelPlacement.Auto

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

Bekommt oder setzt die LabelPlacement

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

Bekommt oder legt einen Stil fest, der auf das Etikett angewendet werden soll

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

Bekommt oder setzt das Elternteil LineAnnotationWithLabelsBase, das dieses Label anhängt

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

Bekommt oder stellt den Winkel in Grad der Drehung im Uhrzeigersinn ein

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

Bekommt oder setzt den Text des Labels

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

Bekommt oder setzt die TextFormatting auf dem Label, wenn die Text-Eigenschaft an einen Data-Value gebunden ist. Dies funktioniert ähnlich wie die AxisBaseTextFormattingEigenschaft

Methoden

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

Bekommt TemplateChild durch den angegebenen Namen und würfelt auf Typ , wobei behauptet wird, dass das Ergebnis nicht null ist

childName
Name des vorgebildeten Teils.

Rückgabe: Die Template Part Instanz

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

Wenn in einer abgeleiteten Klasse überschrieben, wird aufgerufen, wenn Anwendungscode oder interne Prozesse (wie ein Neuaufbau-Layout-Pass) ApplyTemplate aufrufen. Einfach ausgedrückt bedeutet dies, dass die Methode kurz vor der Anzeige eines Benutzeroberflächenelements in einer Anwendung aufgerufen wird. Weitere Informationen finden Sie unter Anmerkungen.

Felder

AxisLabelStyleProperty
public static readonly DependencyProperty AxisLabelStyleProperty
value = AnnotationLabel.AxisLabelStyleProperty

Definiert die AxisLabelDependnecyProperty

CanEditTextProperty
public static readonly DependencyProperty CanEditTextProperty
value = AnnotationLabel.CanEditTextProperty

Definiert die CanEditTextDependnecyProperty

CornerRadiusProperty
public static readonly DependencyProperty CornerRadiusProperty
value = AnnotationLabel.CornerRadiusProperty

Definiert die CornerRadiusDependnecyProperty

LabelPlacementProperty
public static readonly DependencyProperty LabelPlacementProperty
value = AnnotationLabel.LabelPlacementProperty

Definiert die LabelPlacementDependnecyProperty

LabelStyleProperty
public static readonly DependencyProperty LabelStyleProperty
value = AnnotationLabel.LabelStyleProperty

Definiert die LabelStyleDependnecyProperty

RotationAngleProperty
public static readonly DependencyProperty RotationAngleProperty
value = AnnotationLabel.RotationAngleProperty

Definiert die RotationAngleDependnecyProperty

TextFormattingProperty
public static readonly DependencyProperty TextFormattingProperty
value = AnnotationLabel.TextFormattingProperty

Definiert die TextFormattingDependnecyProperty

TextProperty
public static readonly DependencyProperty TextProperty
value = AnnotationLabel.TextProperty

Definiert den Text DependnecyProperty