AnchorPointAnnotation
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
protected AnchorPointAnnotation()
anchorPointAnnotation = AnchorPointAnnotation()
Initializes a new instance of the AnchorPointAnnotation class.
Properties
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.
public double HorizontalOffset { get; }
value = anchorPointAnnotation.HorizontalOffset
Gets the computed HorizontalOffset in pixels to apply to this annotation when placing
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.
public double VerticalOffset { get; }
value = anchorPointAnnotation.VerticalOffset
Gets the computed VerticalOffset in pixels to apply to this annotation when placing
Methods
protected AnnotationCoordinates GetAnchorAnnotationCoordinates(AnnotationCoordinates annotationCoordinates)
result = anchorPointAnnotation.GetAnchorAnnotationCoordinates(annotationCoordinates)
Applies HorizontalOffset and VerticalOffset to annotationCoordinates
- annotationCoordinates
protected override Cursor GetSelectedCursor()
result = anchorPointAnnotation.GetSelectedCursor()
Gets the Cursor to use for the annotation when selected
Fields
public static readonly DependencyProperty HorizontalAnchorPointProperty
value = AnchorPointAnnotation.HorizontalAnchorPointProperty
Defines the HorizontalAnchorPoint DependencyProperty
public static readonly DependencyProperty VerticalAnchorPointProperty
value = AnchorPointAnnotation.VerticalAnchorPointProperty
Defines the VerticalAnchorPointProperty DependencyProperty