HorizontalLineAnnotation

StockSharp.Xaml.Charting.Visuals.Annotations

A class for HorizontalLineAnnotation

Inherits: LineAnnotationWithLabelsBase

Constructors

HorizontalLineAnnotation
public HorizontalLineAnnotation()
horizontalLineAnnotation = HorizontalLineAnnotation()

Creates new instance of HorizontalLineAnnotation

Properties

HorizontalAlignment
public HorizontalAlignment HorizontalAlignment { get; set; }
value = horizontalLineAnnotation.HorizontalAlignment
horizontalLineAnnotation.HorizontalAlignment = value

Gets or sets docking of HorizontalLineAnnotation

YDragStep
public double YDragStep { get; set; }
value = horizontalLineAnnotation.YDragStep
horizontalLineAnnotation.YDragStep = value

Gets or sets the value which determines a drag step for this HorizontalLineAnnotation

Methods

GetPropertiesFromIndex
protected override void GetPropertiesFromIndex(int index, DependencyProperty X, DependencyProperty Y)
horizontalLineAnnotation.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
Y
GetUsedAxis
public override IAxis GetUsedAxis()
result = horizontalLineAnnotation.GetUsedAxis()

Returns axis, which current annotation shows data value for

SetBasePoint
protected override void SetBasePoint(Point newPoint, int index, IAxis xAxis, IAxis yAxis)
horizontalLineAnnotation.SetBasePoint(newPoint, index, xAxis, yAxis)

Called internally to marshal pixel points to X1,Y1,X2,Y2 values. Taking a pixel point () and base point , sets the X,Y data-values.

newPoint
The pixel point
index
The base point index, where 0, 1, 2, 3 refer to the four corners of an Annotation
xAxis
The current X-Axis
yAxis
The current Y-Axis

Fields

HorizontalAlignmentProperty
public static readonly DependencyProperty HorizontalAlignmentProperty
value = HorizontalLineAnnotation.HorizontalAlignmentProperty

Defines the HorizontalAlignment Property

YDragStepProperty
public static readonly DependencyProperty YDragStepProperty
value = HorizontalLineAnnotation.YDragStepProperty

Defines the YDragStep Property