VerticalLineAnnotation

StockSharp.Xaml.Charting.Visuals.Annotations

A class for VerticalLineAnnotation

Erbt von: LineAnnotationWithLabelsBase

Konstruktoren

VerticalLineAnnotation()

Creates new instance of VerticalLineAnnotation

Eigenschaften

LabelsOrientation : Orientation

Gets or sets value, indicating whether labels will be placed vertically or horizontally

VerticalAlignment : VerticalAlignment

Gets or sets docking of VerticalLineAnnotation

Methoden

ApplyPlacement(AnnotationLabel, LabelPlacement)

Positions the AnnotationLabel using the value of the LabelPlacement enum

label
The label to place
placement
Placement arguments
Attach(AnnotationLabel)

Called internally to attach an AnnotationLabel to the current instance

label
The AnnotationLabel to attach
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

GetUsedAxis() : IAxis

Returns axis, which current annotation shows data value for

SetBasePoint(Point, int, IAxis, IAxis)

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

Felder

LabelsOrientationProperty : DependencyProperty

Defines the LabelDirection Property

VerticalAlignmentProperty : DependencyProperty

Defines the VerticalAlignment Property