VerticalLineAnnotation
A class for VerticalLineAnnotation
Inherits: LineAnnotationWithLabelsBase
Constructors
public VerticalLineAnnotation()
verticalLineAnnotation = VerticalLineAnnotation()
Creates new instance of VerticalLineAnnotation
Properties
public Orientation LabelsOrientation { get; set; }
value = verticalLineAnnotation.LabelsOrientation
verticalLineAnnotation.LabelsOrientation = value
Gets or sets value, indicating whether labels will be placed vertically or horizontally
public VerticalAlignment VerticalAlignment { get; set; }
value = verticalLineAnnotation.VerticalAlignment
verticalLineAnnotation.VerticalAlignment = value
Gets or sets docking of VerticalLineAnnotation
Methods
protected override void ApplyPlacement(AnnotationLabel label, LabelPlacement placement)
verticalLineAnnotation.ApplyPlacement(label, placement)
Positions the AnnotationLabel using the value of the LabelPlacement enum
- label
- The label to place
- placement
- Placement arguments
protected override void Attach(AnnotationLabel label)
verticalLineAnnotation.Attach(label)
Called internally to attach an AnnotationLabel to the current instance
- label
- The AnnotationLabel to attach
protected override void GetPropertiesFromIndex(int index, DependencyProperty x, DependencyProperty y)
verticalLineAnnotation.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
protected override Cursor GetSelectedCursor()
result = verticalLineAnnotation.GetSelectedCursor()
Gets the Cursor to use for the annotation when selected
public override IAxis GetUsedAxis()
result = verticalLineAnnotation.GetUsedAxis()
Returns axis, which current annotation shows data value for
protected override void SetBasePoint(Point newPoint, int index, IAxis xAxis, IAxis yAxis)
verticalLineAnnotation.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
public static readonly DependencyProperty LabelsOrientationProperty
value = VerticalLineAnnotation.LabelsOrientationProperty
Defines the LabelDirection Property
public static readonly DependencyProperty VerticalAlignmentProperty
value = VerticalLineAnnotation.VerticalAlignmentProperty
Defines the VerticalAlignment Property