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

LegendItemTextPosition Enum

Lists positions of legend item captions relative to item markers.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
public enum LegendItemTextPosition

#Members

Name Description Image
Bottom

Bottom position.

Bar Guage - Bottom Position of Legend Item Captions

Left

Left position.

Bar Gauge - Left Position of Legend Item Captions

Right

Right position.

Bar Gauge - Right Position of Legend Item Captions

Top

Top position.

Bar Gauge - Top Position of Legend Item Captions

Auto

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

#Related API Members

The following properties accept/return LegendItemTextPosition values:

#Remarks

The following code snippet positions item captions in the DxBarGauge legend to the left from item markers:

Razor
<DxBarGauge Width="50%"
            Height="500px"
            StartValue="0"
            EndValue="100"
            Values="@Values">
    <DxBarGaugeLegendSettings Visible="true"
                              ItemCaptions="@LegendItemCaptions"
                              ItemTextPosition="LegendItemTextPosition.Left"
                              Orientation="LegendItemOrientation.Vertical"
                              HorizontalAlignment="HorizontalAlignment.Left"/>
    @* ... *@
</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