Back to Devexpress

DxCheckBox<T>.LabelPosition Property

blazor-devexpress-dot-blazor-dot-dxcheckbox-1-f764b2a4.md

latest1.7 KB
Original Source

DxCheckBox<T>.LabelPosition Property

Specifies the horizontal position of the checkbox’s child content relative to the check mark.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(LabelPosition.Right)]
[Parameter]
public LabelPosition LabelPosition { 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

The following sample uses the LabelPosition property:

razor
<DxCheckBox Checked="true" LabelPosition="LabelPosition.Right">Text aligned to the right</DxCheckBox> 
<DxCheckBox Checked="true" LabelPosition="LabelPosition.Left">Text aligned to the left</DxCheckBox>

To wrap or crop long CheckBox labels, use the LabelWrapMode property.

See Also

Alignment

DxCheckBox<T> Class

DxCheckBox<T> Members

DevExpress.Blazor Namespace