LineAnnotationWithLabelsBase
Bietet eine Basisklasse für HorizontalLineAnnotation, VerticalLineAnnotation
Erbt von: LineAnnotation
Konstruktoren
protected LineAnnotationWithLabelsBase()
lineAnnotationWithLabelsBase = LineAnnotationWithLabelsBase()
Initialisiert eine neue Instanz der LineAnnotationWithLabelsBase Klasse.
Eigenschaften
public ObservableCollection<AnnotationLabel> AnnotationLabels { get; set; }
value = lineAnnotationWithLabelsBase.AnnotationLabels
lineAnnotationWithLabelsBase.AnnotationLabels = value
Bekommt oder legt eine Sammlung von Annotations-Etiketten fest
protected IComparable DefaultLabelValue { get; }
value = lineAnnotationWithLabelsBase.DefaultLabelValue
Bekommt oder legt Wert fest, an welche Etiketten gebunden sind
protected string DefaultTextFormatting { get; }
value = lineAnnotationWithLabelsBase.DefaultTextFormatting
Bekommt den Standardwert für die Textformatierung
protected string FormattedLabel { get; }
value = lineAnnotationWithLabelsBase.FormattedLabel
Bekommt den formatierten Etikettenwert
public LabelPlacement LabelPlacement { get; set; }
value = lineAnnotationWithLabelsBase.LabelPlacement
lineAnnotationWithLabelsBase.LabelPlacement = value
Bekommt oder setzt Platzierung für das Standard-Label
public string LabelTextFormatting { get; set; }
value = lineAnnotationWithLabelsBase.LabelTextFormatting
lineAnnotationWithLabelsBase.LabelTextFormatting = value
Bekommt oder setzt Formatierungszeichenfolge, die auf alle Annotationsetiketten angewendet wird
public IComparable LabelValue { get; set; }
value = lineAnnotationWithLabelsBase.LabelValue
lineAnnotationWithLabelsBase.LabelValue = value
Bekommt oder setzt einen Wert für das Standard-Label
public bool ShowLabel { get; set; }
value = lineAnnotationWithLabelsBase.ShowLabel
lineAnnotationWithLabelsBase.ShowLabel = value
Bekommt oder setzt den Wert, der angibt, ob das Standard-Label angezeigt wird oder nicht
Methoden
public AnnotationLabel AddLabel()
result = lineAnnotationWithLabelsBase.AddLabel()
Fügt neues Label zu AnnotationLabels
Rückgabe: Label, das erstellt wurde
protected virtual void ApplyPlacement(AnnotationLabel label, LabelPlacement placement)
lineAnnotationWithLabelsBase.ApplyPlacement(label, placement)
Positioniert das AnnotationLabel mit dem Wert des LabelPlacement enum
- label
- Das Label soll platziert werden
- placement
- Argumente für die Platzierung
protected virtual void Attach(AnnotationLabel label)
lineAnnotationWithLabelsBase.Attach(label)
Intern aufgerufen, um ein AnnotationLabel an die aktuelle Instanz anzuhängen
- label
- Die AnnotationLabel @ zu befestigen
protected void AttachLabels(IEnumerable<AnnotationLabel> labels)
lineAnnotationWithLabelsBase.AttachLabels(labels)
Fügt eine Sammlung von AnnotationLabel @ Instanzen zum LineAnnotationWithLabelsBase hinzu
- labels
- Die Sammlung von Labels zum Hinzufügen
protected virtual void Detach(AnnotationLabel label)
lineAnnotationWithLabelsBase.Detach(label)
Trennt das AnnotationLabel von dem aktuellen LineAnnotationWithLabelsBase
- label
- Das Etikett muss abgelöst werden
protected void DetachLabels(IEnumerable<AnnotationLabel> labels)
lineAnnotationWithLabelsBase.DetachLabels(labels)
Entfernt eine Sammlung von AnnotationLabel Instanzen in die LineAnnotationWithLabelsBase
- labels
- Die Sammlung von Etiketten zu entfernen
protected override Cursor GetSelectedCursor()
result = lineAnnotationWithLabelsBase.GetSelectedCursor()
Bekommt den Cursor für die Annotation zu verwenden, wenn ausgewählt
public abstract IAxis GetUsedAxis()
result = lineAnnotationWithLabelsBase.GetUsedAxis()
Gibt Achse zurück, die aktuelle Annotation zeigt Datenwert für
public void InvalidateLabel(AnnotationLabel annotationLabel)
lineAnnotationWithLabelsBase.InvalidateLabel(annotationLabel)
Ungültiges Annotation Label
- annotationLabel
- Kennzeichnung für ungültig
public override bool IsPointWithinBounds(Point point)
result = lineAnnotationWithLabelsBase.IsPointWithinBounds(point)
Gibt true zurück, wenn der Punkt innerhalb der Grenzen des aktuellen IHitTestable-Elements liegt
- point
- Der Punkt zum Testen
Rückgabe: Wahr, wenn der Punkt innerhalb der Grenzen liegt
protected override void MakeInvisible()
lineAnnotationWithLabelsBase.MakeInvisible()
Verbirgt aktuelle Instanz von LineAnnotationWithLabelsBase
protected override void MakeVisible(AnnotationCoordinates coordinates)
lineAnnotationWithLabelsBase.MakeVisible(coordinates)
Verbirgt aktuelle Instanz von LineAnnotationWithLabelsBase
public override void OnApplyTemplate()
lineAnnotationWithLabelsBase.OnApplyTemplate()
Wenn in einer abgeleiteten Klasse überschrieben, wird aufgerufen, wenn Anwendungscode oder interne Prozesse ApplyTemplate aufrufen.
public override void OnAttached()
lineAnnotationWithLabelsBase.OnAttached()
Aufrufen, wenn die Annotation an die übergeordnete Oberfläche angehängt ist
protected override void OnAxisAlignmentChanged(IAxis axis, AxisAlignment oldAlignment)
lineAnnotationWithLabelsBase.OnAxisAlignmentChanged(axis, oldAlignment)
Virtuelle Methode zum Überschreiben, wenn Sie benachrichtigt werden möchten, dass sich der AxisAlignment geändert hat
- axis
- oldAlignment
protected override void OnXAxesCollectionChanged(object sender, NotifyCollectionChangedEventArgs args)
lineAnnotationWithLabelsBase.OnXAxesCollectionChanged(sender, args)
Virtuelle Methode zum Überschreiben, wenn Sie benachrichtigt werden möchten, dass sich die übergeordnete XAxes geändert hat
protected override void OnXAxisIdChanged()
lineAnnotationWithLabelsBase.OnXAxisIdChanged()
Virtuelle Methode zum Überschreiben, wenn Sie benachrichtigt werden möchten, dass sich der XAxisId geändert hat
protected override void OnYAxesCollectionChanged(object sender, NotifyCollectionChangedEventArgs args)
lineAnnotationWithLabelsBase.OnYAxesCollectionChanged(sender, args)
Virtuelle Methode zum Überschreiben, wenn Sie benachrichtigt werden möchten, dass sich die übergeordneten YAxes geändert haben
protected override void OnYAxisIdChanged()
lineAnnotationWithLabelsBase.OnYAxisIdChanged()
Virtuelle Methode zum Überschreiben, wenn Sie benachrichtigt werden möchten, dass sich der YAxisId geändert hat
protected virtual void PlaceAxisLabel(IAxis axis, AnnotationLabel axisLabel, Point offset)
lineAnnotationWithLabelsBase.PlaceAxisLabel(axis, axisLabel, offset)
Platzieren Sie ModifierAxisCanvas @ der entsprechenden Achse an der Position.
protected void TryPlaceAxisLabels(Point offset)
lineAnnotationWithLabelsBase.TryPlaceAxisLabels(offset)
Versuchen Sie, alle Annotationsetiketten auf ModifierAxisCanvas @ der entsprechenden Achse an der Position zu platzieren.
Felder
public static readonly DependencyProperty AnnotationLabelsProperty
value = LineAnnotationWithLabelsBase.AnnotationLabelsProperty
Definiert die AnnotationLabelsEigenschaft
protected internal static readonly DependencyProperty DefaultLabelValueProperty
value = LineAnnotationWithLabelsBase.DefaultLabelValueProperty
Definiert die DefaultLabelValueEigenschaft
protected static readonly DependencyProperty DefaultTextFormattingProperty
value = LineAnnotationWithLabelsBase.DefaultTextFormattingProperty
Definiert die DefaultTextFormattingEigenschaft
public static readonly DependencyProperty FormattedLabelProperty
value = LineAnnotationWithLabelsBase.FormattedLabelProperty
Definiert die FormattedLabelEigenschaft
public static readonly DependencyProperty LabelPlacementProperty
value = LineAnnotationWithLabelsBase.LabelPlacementProperty
Definiert die LabelPlacementEigenschaft
public static readonly DependencyProperty LabelTextFormattingProperty
value = LineAnnotationWithLabelsBase.LabelTextFormattingProperty
Definiert die LabelTextFormattingEigenschaft
public static readonly DependencyProperty LabelValueProperty
value = LineAnnotationWithLabelsBase.LabelValueProperty
Definiert die LabelValueEigenschaft
public static readonly DependencyProperty ShowLabelProperty
value = LineAnnotationWithLabelsBase.ShowLabelProperty
Definiert die ShowLabelEigenschaft