Skip to main content

RelativePosition Class

The settings for the annotation position depending on its anchor point.

Namespace: DevExpress.Xpf.Charts

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

NuGet Package: DevExpress.Wpf.Charts


public class RelativePosition :


If the Annotation.ShapePosition property is specified as RelativePosition, define an angle by which an annotation is rotated around its anchor point using the RelativePosition.Angle property. Specify the connector length using the RelativePosition.ConnectorLength property.



This example demonstrates how to customize the annotation layout when the Annotation.ShapePosition property is specified as the RelativePosition type.

Then, configure the RelativePosition.ConnectorLength and RelativePosition.Angle properties to specify the annotation position.

View Example

    <dxc:RelativePosition Angle="60" 

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


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