LineAnnotationBase
Eine Basisklasse mit gemeinsamen Eigenschaften für LineAnnotation, HorizontalLineAnnotation und VerticalLineAnnotation
Erbt von: AnnotationBase
Eigenschaften
public Brush Stroke { get; set; }
value = lineAnnotationBase.Stroke
lineAnnotationBase.Stroke = value
Bekommt oder setzt den Strichpinsel der Linie
public DoubleCollection StrokeDashArray { get; set; }
value = lineAnnotationBase.StrokeDashArray
lineAnnotationBase.StrokeDashArray = value
Bekommt oder setzt die StrokeDashArray der Linie
public double StrokeThickness { get; set; }
value = lineAnnotationBase.StrokeThickness
lineAnnotationBase.StrokeThickness = value
Bekommt oder setzt die StrokeThickness der Linie
Methoden
protected override void GetPropertiesFromIndex(int index, DependencyProperty x, DependencyProperty y)
lineAnnotationBase.GetPropertiesFromIndex(index, x, y)
Intern verwendet, um das Paar X1Property, Y1Property, X1Property, Y2Property für den angegebenen Index um die Annotation herum abzuleiten. e.g. index 0 gibt X1,Y1 index 1 zurück, X2,Y1 index 2 gibt X2,Y2 index 3 zurück, X1,Y2
- index
- Der Index
- x
- Die X-Koordinatenabhängigkeitseigenschaft, entweder X1Property oder X2Property
- y
- Die Y-Koordinatenabhängigkeitseigenschaft, entweder Y1Property oder Y2Property
protected override Cursor GetSelectedCursor()
result = lineAnnotationBase.GetSelectedCursor()
Bekommt den Cursor für die Annotation zu verwenden, wenn ausgewählt
public override bool IsPointWithinBounds(Point point)
result = lineAnnotationBase.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
Felder
public static readonly DependencyProperty StrokeDashArrayProperty
value = LineAnnotationBase.StrokeDashArrayProperty
Definiert die StrokeDashArrayDependencyProperty
public static readonly DependencyProperty StrokeProperty
value = LineAnnotationBase.StrokeProperty
Definiert den Schlaganfall DependencyProperty
public static readonly DependencyProperty StrokeThicknessProperty
value = LineAnnotationBase.StrokeThicknessProperty
Definiert die StrokeThicknessDependencyProperty