LineAnnotationBase

StockSharp.Xaml.Charting.Visuals.Annotations

A base class with shared properties for LineAnnotation, HorizontalLineAnnotation and VerticalLineAnnotation

Inherits: AnnotationBase

Properties

Stroke
public Brush Stroke { get; set; }
value = lineAnnotationBase.Stroke
lineAnnotationBase.Stroke = value

Gets or sets the Stroke brush of the line

StrokeDashArray
public DoubleCollection StrokeDashArray { get; set; }
value = lineAnnotationBase.StrokeDashArray
lineAnnotationBase.StrokeDashArray = value

Gets or sets the StrokeDashArray of the line

StrokeThickness
public double StrokeThickness { get; set; }
value = lineAnnotationBase.StrokeThickness
lineAnnotationBase.StrokeThickness = value

Gets or sets the StrokeThickness of the line

Methods

GetPropertiesFromIndex
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
GetSelectedCursor
protected override Cursor GetSelectedCursor()
result = lineAnnotationBase.GetSelectedCursor()

Gets the Cursor to use for the annotation when selected

IsPointWithinBounds
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

StrokeDashArrayProperty
public static readonly DependencyProperty StrokeDashArrayProperty
value = LineAnnotationBase.StrokeDashArrayProperty

Defines the StrokeDashArray DependencyProperty

StrokeProperty
public static readonly DependencyProperty StrokeProperty
value = LineAnnotationBase.StrokeProperty

Defines the Stroke DependencyProperty

StrokeThicknessProperty
public static readonly DependencyProperty StrokeThicknessProperty
value = LineAnnotationBase.StrokeThicknessProperty

Defines the StrokeThickness DependencyProperty