Back to Devexpress

LegendBaseSettings<TComponent, TModel>.RowCount Property

blazor-devexpress-dot-blazor-dot-base-dot-legendbasesettings-2-f14fa574.md

latest1.6 KB
Original Source

LegendBaseSettings<TComponent, TModel>.RowCount Property

Arranges legend items into rows.

Namespace : DevExpress.Blazor.Base

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(0)]
[Parameter]
public int RowCount { get; set; }

Property Value

TypeDefaultDescription
Int320

The number of rows.

|

Remarks

Use the RowCount property to arrange legend items into rows. The property specifies the number of rows.

Example

The following code snippet arranges items in the DxBarGauge legend into two rows:

razor
<DxBarGauge Width="100%"
            Height="500px"
            StartValue="0"
            EndValue="100"
            Values="@Values">
    <DxBarGaugeLegendSettings Visible="true"
                              ItemCaptions="@LegendItemCaptions"
                              RowCount="2"/>
    @* ... *@
</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

LegendBaseSettings<TComponent, TModel> Class

LegendBaseSettings<TComponent, TModel> Members

DevExpress.Blazor.Base Namespace