Skip to main content

FreePosition.VerticalAlignment Property

Gets or sets how the annotation will be located vertically.

Namespace: DevExpress.Xpf.Charts

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

NuGet Package: DevExpress.Wpf.Charts


public AnnotationVerticalAlignment VerticalAlignment { get; set; }

Property Value

Type Description

A AnnotationVerticalAlignment object specifying vertical alignment.

Available values:

Name Description

The annotation is aligned to the top edge of a parent element.


The annotation is aligned to the center of the vertical within a parent element.


The annotation is aligned to the bottom edge of a parent element.


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.

View Example

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

The following code snippets (auto-collected from DevExpress Examples) contain references to the VerticalAlignment 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