DxRadioGroup<TData, TValue>.ItemAlignment Property
Specifies the position of item labels relative to the container boundaries.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.1.dll
NuGet Package: DevExpress.Blazor
Declaration
[Parameter]
public CheckBoxContentAlignment ItemAlignment { get; set; }
Property Value
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 |
SpaceAround | The component’s content uses |
Remarks
Use the ItemAlignment
and ItemLabelPosition properties to change content position:
<div style="width:400px">
<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" };
}