AnchorPointAnnotation

StockSharp.Xaml.Charting.Visuals.Annotations

An Anchor-Point annotation is an IAnnotation which only has one X1,Y1 point. This annotation may be anchored around the coordinate using various alignmnets. See the HorizontalAnchorPoint and VerticalAnchorPoint properties for more information

Inherits: AnnotationBase

Implements: IAnchorPointAnnotation, IAnnotation, IHitTestable, IPublishMouseEvents, IXmlSerializable

Constructors

AnchorPointAnnotation
protected AnchorPointAnnotation()
anchorPointAnnotation = AnchorPointAnnotation()

Initializes a new instance of the AnchorPointAnnotation class.

Properties

HorizontalAnchorPoint
public HorizontalAnchorPoint HorizontalAnchorPoint { get; set; }
value = anchorPointAnnotation.HorizontalAnchorPoint
anchorPointAnnotation.HorizontalAnchorPoint = value

Gets or sets the HorizontalAnchorPoint. The value of Left means the X1,Y1 coordinate of the annotation is on the Left horizontally. The value of Center means the X1,Y1 coordinate of the annotation is at the center horizontally. The value of Right means the X1,Y1 coordinate of the annotation is at the right horizontally.

HorizontalOffset
public double HorizontalOffset { get; }
value = anchorPointAnnotation.HorizontalOffset

Gets the computed HorizontalOffset in pixels to apply to this annotation when placing

VerticalAnchorPoint
public VerticalAnchorPoint VerticalAnchorPoint { get; set; }
value = anchorPointAnnotation.VerticalAnchorPoint
anchorPointAnnotation.VerticalAnchorPoint = value

Gets or sets the VerticalAnchorPoint. The value of Top means the X1,Y1 coordinate of the annotation is on the Top vertically. The value of Center means the X1,Y1 coordinate of the annotation is at the center vertically. The value of Bottom means the X1,Y1 coordinate of the annotation is at the Bottom vertically.

VerticalOffset
public double VerticalOffset { get; }
value = anchorPointAnnotation.VerticalOffset

Gets the computed VerticalOffset in pixels to apply to this annotation when placing

Methods

GetAnchorAnnotationCoordinates
protected AnnotationCoordinates GetAnchorAnnotationCoordinates(AnnotationCoordinates annotationCoordinates)
result = anchorPointAnnotation.GetAnchorAnnotationCoordinates(annotationCoordinates)

Applies HorizontalOffset and VerticalOffset to annotationCoordinates

annotationCoordinates
GetSelectedCursor
protected override Cursor GetSelectedCursor()
result = anchorPointAnnotation.GetSelectedCursor()

Gets the Cursor to use for the annotation when selected

Fields

HorizontalAnchorPointProperty
public static readonly DependencyProperty HorizontalAnchorPointProperty
value = AnchorPointAnnotation.HorizontalAnchorPointProperty

Defines the HorizontalAnchorPoint DependencyProperty

VerticalAnchorPointProperty
public static readonly DependencyProperty VerticalAnchorPointProperty
value = AnchorPointAnnotation.VerticalAnchorPointProperty

Defines the VerticalAnchorPointProperty DependencyProperty