Annotation Class

An additional note which can be anchored to chart, panes or series point.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v19.2.dll

Declaration

public class Annotation :
    ChartNotificationElement,
    IWeakEventListener,
    IHitTestableElement,
    IInteractiveElement,
    IScrollBarAnnotation
Public Class Annotation
    Inherits ChartNotificationElement
    Implements IWeakEventListener,
               IHitTestableElement,
               IInteractiveElement,
               IScrollBarAnnotation

Returned By

The ChartHitInfoBase.Annotation property returns an instance of Annotation.

Remarks

For more information about annotations, refer to the Annotations document.

Examples

This example demonstrates how to anchor an annotation to a series point.

To do this, specify the SeriesPointAnchorPoint.SeriesPoint property.

<dxc:Annotation Content="Annotation #1">
    <dxc:Annotation.AnchorPoint>
        <dxc:SeriesPointAnchorPoint SeriesPoint="{Binding ElementName=seriesPoint}"/>
    </dxc:Annotation.AnchorPoint>
    <dxc:Annotation.ShapePosition>
        <dxc:RelativePosition Angle="60" 
                              ConnectorLength="50"/>
    </dxc:Annotation.ShapePosition>
</dxc:Annotation>

Inheritance

See Also