LineArrowAnnotation

StockSharp.Xaml.Charting.Visuals.Annotations

The LineArrowAnnotation provides a Line with X1,Y1,X2,Y2 coordinates and an arrow head at the tip.

Inherits: LineAnnotationBase

Constructors

LineArrowAnnotation
public LineArrowAnnotation()
lineArrowAnnotation = LineArrowAnnotation()

Initializes a new instance of the LineArrowAnnotation class.

Properties

HeadLength
public double HeadLength { get; set; }
value = lineArrowAnnotation.HeadLength
lineArrowAnnotation.HeadLength = value

Gets or sets the Head Length in pixels. Change this along with HeadWidth to make the line-arrow head larger or smaller

HeadWidth
public double HeadWidth { get; set; }
value = lineArrowAnnotation.HeadWidth
lineArrowAnnotation.HeadWidth = value

Gets or sets the Head Length in pixels. Change this along with HeadLength to make the line-arrow head larger or smaller

Methods

IsPointWithinBounds
public override bool IsPointWithinBounds(Point point)
result = lineArrowAnnotation.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

OnApplyTemplate
public override void OnApplyTemplate()
lineArrowAnnotation.OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate.

Fields

HeadLengthProperty
public static readonly DependencyProperty HeadLengthProperty
value = LineArrowAnnotation.HeadLengthProperty

Defines the HeadLength DependencyProperty

HeadWidthProperty
public static readonly DependencyProperty HeadWidthProperty
value = LineArrowAnnotation.HeadWidthProperty

Defines the HeadWidth DependencyProperty