Skip to main content
A newer version of this page is available. .

ChartAnchorPoint Class

Settings that indicate the Annotation is anchored to a chart.

Namespace: DevExpress.Xpf.Charts

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

Declaration

public class ChartAnchorPoint :
    AnnotationAnchorPoint

Remarks

The annotation position relative to the chart’s top and left edges can be specified using the ChartAnchorPoint.X and ChartAnchorPoint.Y properties. These coordinates position an annotation absolutely, meaning that the anchor point doesn’t change when a chart is being resized.

Example

This example demonstrates how to anchor an annotation to a chart surface point as shown in the following image:

annotation-chart-anchor-point

To do this, specify the ChartAnchorPoint.X and ChartAnchorPoint.Y properties.

<dxc:Annotation Content="Annotation #3">
    <dxc:Annotation.AnchorPoint>
        <dxc:ChartAnchorPoint X="100" 
                              Y="220"/>
    </dxc:Annotation.AnchorPoint>
    <dxc:Annotation.ShapePosition>
        <dxc:RelativePosition ConnectorLength="80" 
                              Angle="-20"/>
    </dxc:Annotation.ShapePosition>
</dxc:Annotation>

The following code snippets (auto-collected from DevExpress Examples) contain references to the ChartAnchorPoint class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also