LineAnnotationBase
A base class with shared properties for LineAnnotation, HorizontalLineAnnotation and VerticalLineAnnotation
Inherits: AnnotationBase
Properties
public Brush Stroke { get; set; }
value = lineAnnotationBase.Stroke
lineAnnotationBase.Stroke = value
Gets or sets the Stroke brush of the line
public DoubleCollection StrokeDashArray { get; set; }
value = lineAnnotationBase.StrokeDashArray
lineAnnotationBase.StrokeDashArray = value
Gets or sets the StrokeDashArray of the line
public double StrokeThickness { get; set; }
value = lineAnnotationBase.StrokeThickness
lineAnnotationBase.StrokeThickness = value
Gets or sets the StrokeThickness of the line
Methods
protected override void GetPropertiesFromIndex(int index, DependencyProperty x, DependencyProperty y)
lineAnnotationBase.GetPropertiesFromIndex(index, x, y)
Used internally to derive the X1Property, Y1Property, X1Property, Y2Property pair for the given index around the annotation.. e.g. index 0 returns X1,Y1 index 1 returns X2,Y1 index 2 returns X2,Y2 index 3 returns X1,Y2
- index
- The index
- x
- The X coordinate dependency property, either X1Property or X2Property
- y
- The Y coordinate dependency property, either Y1Property or Y2Property
protected override Cursor GetSelectedCursor()
result = lineAnnotationBase.GetSelectedCursor()
Gets the Cursor to use for the annotation when selected
public override bool IsPointWithinBounds(Point point)
result = lineAnnotationBase.IsPointWithinBounds(point)
Returns true if the Point is within the bounds of the current IHitTestable element
- point
- The point to test
Returns: true if the Point is within the bounds
Fields
public static readonly DependencyProperty StrokeDashArrayProperty
value = LineAnnotationBase.StrokeDashArrayProperty
Defines the StrokeDashArray DependencyProperty
public static readonly DependencyProperty StrokeProperty
value = LineAnnotationBase.StrokeProperty
Defines the Stroke DependencyProperty
public static readonly DependencyProperty StrokeThicknessProperty
value = LineAnnotationBase.StrokeThicknessProperty
Defines the StrokeThickness DependencyProperty