AnnotationLabel
Definiert ein AnnotationLabel, das in HorizontalLineAnnotation und VerticalLineAnnotation Instanzen verwendet werden kann
Erbt von: Control
Konstruktoren
public AnnotationLabel()
annotationLabel = AnnotationLabel()
Initialisiert eine neue Instanz der AnnotationLabel Klasse.
Eigenschaften
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
public bool CanEditText { get; set; }
value = annotationLabel.CanEditText
annotationLabel.CanEditText = value
Gibt oder legt fest, ob der Text im Label editierbar ist
public CornerRadius CornerRadius { get; set; }
value = annotationLabel.CornerRadius
annotationLabel.CornerRadius = value
Bekommt oder setzt das CornerRadius des Label-Elements
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
public LabelPlacement LabelPlacement { get; set; }
value = annotationLabel.LabelPlacement
annotationLabel.LabelPlacement = value
Bekommt oder setzt die LabelPlacement
public Style LabelStyle { get; set; }
value = annotationLabel.LabelStyle
annotationLabel.LabelStyle = value
Bekommt oder legt einen Stil fest, der auf das Etikett angewendet werden soll
public LineAnnotationWithLabelsBase ParentAnnotation { get; set; }
value = annotationLabel.ParentAnnotation
annotationLabel.ParentAnnotation = value
Bekommt oder setzt das Elternteil LineAnnotationWithLabelsBase, das dieses Label anhängt
public double RotationAngle { get; set; }
value = annotationLabel.RotationAngle
annotationLabel.RotationAngle = value
Bekommt oder stellt den Winkel in Grad der Drehung im Uhrzeigersinn ein
public string Text { get; set; }
value = annotationLabel.Text
annotationLabel.Text = value
Bekommt oder setzt den Text des Labels
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
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
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
public static readonly DependencyProperty AxisLabelStyleProperty
value = AnnotationLabel.AxisLabelStyleProperty
Definiert die AxisLabelDependnecyProperty
public static readonly DependencyProperty CanEditTextProperty
value = AnnotationLabel.CanEditTextProperty
Definiert die CanEditTextDependnecyProperty
public static readonly DependencyProperty CornerRadiusProperty
value = AnnotationLabel.CornerRadiusProperty
Definiert die CornerRadiusDependnecyProperty
public static readonly DependencyProperty LabelPlacementProperty
value = AnnotationLabel.LabelPlacementProperty
Definiert die LabelPlacementDependnecyProperty
public static readonly DependencyProperty LabelStyleProperty
value = AnnotationLabel.LabelStyleProperty
Definiert die LabelStyleDependnecyProperty
public static readonly DependencyProperty RotationAngleProperty
value = AnnotationLabel.RotationAngleProperty
Definiert die RotationAngleDependnecyProperty
public static readonly DependencyProperty TextFormattingProperty
value = AnnotationLabel.TextFormattingProperty
Definiert die TextFormattingDependnecyProperty
public static readonly DependencyProperty TextProperty
value = AnnotationLabel.TextProperty
Definiert den Text DependnecyProperty