Skip to main content
All docs
V24.2

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

LegendBase.HorizontalPosition Property

Gets or sets the legend’s horizontal position within the chart control.

Namespace: DevExpress.Xpf.Charts

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

NuGet Package: DevExpress.Wpf.Charts

#Declaration

public HorizontalPosition HorizontalPosition { get; set; }

#Property Value

Type Description
HorizontalPosition

A HorizontalPosition enumeration member which specifies the legend’s horizontal position within the chart control.

Available values:

Name Description
LeftOutside

The legend is positioned to the left of the diagram.

HorizontalPosition_LeftOutside

Left

The legend is positioned on the left side of the Diagram.

HorizontalPosition_Left

Center

Centers a legend horizontally within the Diagram.

HorizontalPosition_Center

Right

The legend is positioned on the right side of the Diagram.

HorizontalPosition_Right

RightOutside

The legend is positioned to the right of the diagram.

HorizontalPosition_RightOutside

#Remarks

To specify the legend’s vertical position, use the LegendBase.VerticalPosition property.

See Also