Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

CheckBoxContentAlignment Enum

Lists values that define alignment of a CheckBox’s text label and check mark relative to each other.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
public enum CheckBoxContentAlignment

#Members

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.

#Related API Members

#Remarks

Use the CheckBoxContentAlignment enumeration values to define alignment of a CheckBox‘s text label and check mark relative to each other.

Razor
<div>
    <DxCheckBox Checked="false" 
                LabelPosition="LabelPosition.Right" 
                Alignment="CheckBoxContentAlignment.Left">Multimedia</DxCheckBox>
</div>           

Checkbox Alignment

Note

Checkbox alignment can work incorrectly when the CheckType property is set to CheckType.Switch and a text label is not specified.

Run Demo: CheckBox - Alignment

See Also