LineAnnotationBase

StockSharp.Xaml.Charting.Visuals.Annotations

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

Inherits: AnnotationBase

Properties

Stroke : Brush

Gets or sets the Stroke brush of the line

StrokeDashArray : DoubleCollection

Gets or sets the StrokeDashArray of the line

StrokeThickness : double

Gets or sets the StrokeThickness of the line

Methods

GetPropertiesFromIndex(int, DependencyProperty, DependencyProperty)

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() : Cursor

Gets the Cursor to use for the annotation when selected

IsPointWithinBounds(Point) : bool

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 : DependencyProperty

Defines the StrokeDashArray DependencyProperty

StrokeProperty : DependencyProperty

Defines the Stroke DependencyProperty

StrokeThicknessProperty : DependencyProperty

Defines the StrokeThickness DependencyProperty