AnchorPointAnnotation

StockSharp.Xaml.Charting.Visuals.Annotations

Eine Anchor-Point-Annotation ist eine IAnnotation, die nur einen X1,Y1-Punkt hat. Diese Annotation kann mit verschiedenen Alignnets um die Koordinate herum verankert werden.

Erbt von: AnnotationBase

Implementiert: IAnchorPointAnnotation, IAnnotation, IHitTestable, IPublishMouseEvents, IXmlSerializable

Konstruktoren

AnchorPointAnnotation
protected AnchorPointAnnotation()
anchorPointAnnotation = AnchorPointAnnotation()

Initialisiert eine neue Instanz der AnchorPointAnnotation Klasse.

Eigenschaften

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

Der Wert von links bedeutet die X1,Y1-Koordinate der Anmerkung liegt horizontal links. Der Wert von Mitte bedeutet die X1,Y1-Koordinate der Anmerkung liegt horizontal in der Mitte. Der Wert von rechts bedeutet die X1,Y1-Koordinate der Anmerkung ist horizontal rechts.

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

Bekommt die berechnete HorizontalOffset @ in Pixeln, um diese Anmerkung beim Platzieren anzuwenden

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

Der Wert von Top bedeutet, dass die X1,Y1-Koordinate der Anmerkung vertikal oben liegt. Der Wert von Center bedeutet, dass die X1,Y1-Koordinate der Anmerkung vertikal in der Mitte liegt. Der Wert von Bottom bedeutet, dass die X1,Y1-Koordinate der Anmerkung vertikal unten liegt.

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

Bekommt die berechnete VerticalOffset @ in Pixeln, um diese Anmerkung beim Platzieren anzuwenden

Methoden

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

Gilt HorizontalOffset und VerticalOffset auf annotationCoordinates an

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

Bekommt den Cursor für die Annotation zu verwenden, wenn ausgewählt

Felder

HorizontalAnchorPointProperty
public static readonly DependencyProperty HorizontalAnchorPointProperty
value = AnchorPointAnnotation.HorizontalAnchorPointProperty

Definiert die HorizontalAnchorPointDependencyProperty

VerticalAnchorPointProperty
public static readonly DependencyProperty VerticalAnchorPointProperty
value = AnchorPointAnnotation.VerticalAnchorPointProperty

Definiert die VerticalAnchorPointPropertyDependencyProperty