blazor-devexpress-dot-blazor-dot-dxradiogroup-2-16fd9a44.md
Specifies the position of item labels relative to the container boundaries.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
[Parameter]
public CheckBoxContentAlignment ItemAlignment { get; set; }
| Type | Description |
|---|---|
| CheckBoxContentAlignment |
A CheckBoxContentAlignment enumeration value.
|
Available values:
| Name | Description |
|---|---|
| Default |
The component’s content is aligned according to outer styles a user applies.
| | Left |
The component’s content is aligned to the left of the component’s root element.
| | Right |
The component’s content is aligned to the right of the component’s root element.
| | Center |
The component’s content is aligned to the center of the component’s root element.
| | SpaceBetween |
The component’s content uses the justify-content: space-between alignment.
| | SpaceAround |
The component’s content uses justify-content: space-around alignment.
|
Use the ItemAlignment and ItemLabelPosition properties to change content position:
<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" };
}
.w-400 {
width: 400px;
}
See Also
DxRadioGroup<TData, TValue> Class