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

LegendItemOrientation Enum

Lists orientation options for legend items.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
public enum LegendItemOrientation

#Members

Name Description
Horizontal

Horizontal orientation.

Vertical

Vertical orientation.

Auto

This option is identical to Horizontal if the HorizontalAlignment property value is Center; otherwise, the Auto option is identical to Vertical.

#Related API Members

The following properties accept/return LegendItemOrientation values:

#Remarks

The following code snippet aligns the DxBarGauge legend to the left and arranges its items horizontally:

Razor
<DxBarGauge Width="50%"
            Height="500px"
            StartValue="0"
            EndValue="100"
            Values="@Values">
    <DxBarGaugeLegendSettings Visible="true"
                              ItemCaptions="@LegendItemCaptions"
                              BackgroundColor="lightgrey"
                              HorizontalAlignment="HorizontalAlignment.Left"
                              Orientation="LegendItemOrientation.Horizontal"/>
    @* ... *@
</DxBarGauge>

@code {
    double[] Values = new double[] { 47.27, 65.32, 84.59, 81.86, 99 };
    string[] LegendItemCaptions = new string[] { "Metacritic", "Ratingraph.com", "Rotten Tomatoes", "IMDb", "TV.com" };
}
See Also