Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RelativePosition Class

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

Namespace: DevExpress.Xpf.Charts

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

NuGet Package: DevExpress.Wpf.Charts

#Declaration

public class RelativePosition :
    AnnotationShapePosition

#Remarks

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.

RelativePositionAngle

#Example

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.

<dxc:Annotation.ShapePosition>
    <dxc:RelativePosition Angle="60" 
                          ConnectorLength="50"/>
</dxc:Annotation.ShapePosition>
See Also