Back to Devexpress

LegendBaseSettings<TComponent, TModel>.RowSpacing Property

blazor-devexpress-dot-blazor-dot-base-dot-legendbasesettings-2-72e55f1a.md

latest1.7 KB
Original Source

LegendBaseSettings<TComponent, TModel>.RowSpacing Property

Specifies the distance between legend rows.

Namespace : DevExpress.Blazor.Base

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(8)]
[Parameter]
public int RowSpacing { get; set; }

Property Value

TypeDefaultDescription
Int328

The distance between legend rows in pixels.

|

Remarks

The following code snippet removes an empty space between legend rows in the DxBarGauge component:

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