Back to Devexpress

DxRadioGroup<TData, TValue>.ItemLabelPosition Property

blazor-devexpress-dot-blazor-dot-dxradiogroup-2-93f5eb03.md

latest2.0 KB
Original Source

DxRadioGroup<TData, TValue>.ItemLabelPosition Property

Specifies the position of item labels relative to clickable circles.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(LabelPosition.Right)]
[Parameter]
public LabelPosition ItemLabelPosition { get; set; }

Property Value

TypeDefaultDescription
LabelPositionRight

A LabelPosition enumeration value.

|

Available values:

NameDescription
Right

The checkbox’s child content is displayed to the right of the check mark.

| | Left |

The checkbox’s child content is displayed to the left of the check mark.

|

Remarks

Use the ItemLabelPosition and ItemAlignment properties to change content position:

razor
<div class="w-400">
    <DxRadioGroup Items="@Languages"
                  @bind-Value="@PreferredLanguage"
                  ItemLabelPosition="LabelPosition.Left"
                  ItemAlignment="CheckBoxContentAlignment.Right">
    </DxRadioGroup>
</div>

@code {
    string PreferredLanguage { get; set; } = "English";
    IEnumerable<string> Languages = new[] { "English", "简体中文", "Español", "Français", "Deutsch" };
}
css
.w-400 {
    width: 400px;
}

See Also

DxRadioGroup<TData, TValue> Class

DxRadioGroup<TData, TValue> Members

DevExpress.Blazor Namespace