FreePosition.VerticalAlignment Property

Gets or sets how the annotation will be located vertically.

Namespace: DevExpress.Xpf.Charts

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


public AnnotationVerticalAlignment VerticalAlignment { get; set; }
Public Property VerticalAlignment As AnnotationVerticalAlignment

Property Value

Type Description

A AnnotationVerticalAlignment object specifying vertical alignment.


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

To do this, dock the annotation to the required element using the FreePosition.DockTarget property. Then, specify the FreePosition.VerticalAlignment and FreePosition.HorizontalAlignment properties, to configure the annotation position.

    <dxc:FreePosition HorizontalAlignment="Right" 
                      DockTarget="{Binding ElementName=defaultPane}"/>
See Also