RulerAnnotation
Lineal Annotation.
Erbt von: AnnotationBase
Konstruktoren
public RulerAnnotation()
rulerAnnotation = RulerAnnotation()
Initialisiert eine neue Instanz des ICH.
Eigenschaften
public double RulerHeight { get; set; }
value = rulerAnnotation.RulerHeight
rulerAnnotation.RulerHeight = value
Höhe des Lineals.
public double RulerWidth { get; set; }
value = rulerAnnotation.RulerWidth
rulerAnnotation.RulerWidth = value
Breite des Lineals.
public string Text1 { get; set; }
value = rulerAnnotation.Text1
rulerAnnotation.Text1 = value
Erste Zeile des Lineal-Textes.
public string Text2 { get; set; }
value = rulerAnnotation.Text2
rulerAnnotation.Text2 = value
Zweite Zeile des Linealtextes.
Methoden
protected override void AttachInteractionHandlersTo(FrameworkElement source)
rulerAnnotation.AttachInteractionHandlersTo(source)
Auto-Remove auf jedem Mausklick.
protected override void DetachInteractionHandlersFrom(FrameworkElement source)
rulerAnnotation.DetachInteractionHandlersFrom(source)
Auto-Remove auf jedem Mausklick.
protected override IComparable FromCoordinate(double coord, IAxis axis)
result = rulerAnnotation.FromCoordinate(coord, axis)
Konvertiert eine Pixelkoordinate in Data-Value
- coord
- Die Pixelkoordinate.
- axis
- Die Achse, für die der Datenwert berechnet wird
Rückgabe: Der DataValue
protected override IAnnotationPlacementStrategy GetCurrentPlacementStrategy()
result = rulerAnnotation.GetCurrentPlacementStrategy()
protected override Cursor GetSelectedCursor()
result = rulerAnnotation.GetSelectedCursor()
Bekommt den Cursor für die Annotation zu verwenden, wenn ausgewählt
public override bool IsPointWithinBounds(Point point)
result = rulerAnnotation.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()
rulerAnnotation.MakeInvisible()
Intern vom Layoutsystem aufgerufen, wenn die Annotation außerhalb der Grenzen der Oberfläche liegt
protected override void MakeVisible(AnnotationCoordinates coordinates)
rulerAnnotation.MakeVisible(coordinates)
Intern vom Layoutsystem aufgerufen, wenn die Annotation in die Grenzen der Oberfläche gelangt
public override void OnApplyTemplate()
rulerAnnotation.OnApplyTemplate()
Erstellt den visuellen Baum für das LayoutTransformer @ Steuerelement, wenn eine neue Vorlage angewendet wird.
Felder
public static readonly DependencyProperty RulerHeightProperty
value = RulerAnnotation.RulerHeightProperty
Höhe des Lineals.
public static readonly DependencyProperty RulerWidthProperty
value = RulerAnnotation.RulerWidthProperty
Breite des Lineals.
public static readonly DependencyProperty Text1Property
value = RulerAnnotation.Text1Property
Erste Zeile des Lineal-Textes.
public static readonly DependencyProperty Text2Property
value = RulerAnnotation.Text2Property
Zweite Zeile des Linealtextes.