Skip to main content
All docs
V24.1

LegendBaseSettings<TComponent, TModel>.MarkerSize Property

Specifies the size of legend item markers.

Namespace: DevExpress.Blazor.Base

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

[DefaultValue(20)]
[Parameter]
public int MarkerSize { get; set; }

Property Value

Type Default Description
Int32 20

The marker size in pixels.

Remarks

The following code snippet changes the size of item markers in the DxBarGauge legend:

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