Skip to main content

RelativePosition.Angle Property

Specifies the angle by which an annotation is rotated around its anchor point.

Namespace: DevExpress.Xpf.Charts

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

NuGet Package: DevExpress.Wpf.Charts


public double Angle { get; set; }

Property Value

Type Description

A Double value specifying an angle in degrees.


When the Annotation.ShapePosition property is specified as RelativePosition, use the Angle and RelativePosition.ConnectorLength properties to define the annotation position relative to its anchor point.

The following table illustrates different values of the Angle property (the RelativePosition.ConnectorLength property is specified as 90).

The Property Value The Example Image
Angle = 0 AnnotationRelativePositionAngle0
Angle = 45 AnnotationRelativePositionAngle45


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

To do this, specify the SeriesPointAnchorPoint.SeriesPoint property.

View Example

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

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


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