Back to Devexpress

ItemCaptionAlignment Enum

blazor-devexpress-dot-blazor-2b7b9285.md

latest2.1 KB
Original Source

ItemCaptionAlignment Enum

Lists the rules that specify how paddings are calculated within the Form Layout component.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
public enum ItemCaptionAlignment

Members

NameDescription
None

The caption width is equal to the width of its content.

| | InGroups |

The width of all the captions in a group is set to the width of the longest caption in this group.

| | All |

The width of all the captions in Form Layout is set to the width of the longest caption in the component.

|

The following properties accept/return ItemCaptionAlignment values:

Remarks

Use the ItemCaptionAlignment property to switch between padding calculation rules.

The following code snippet sets the ItemCaptionAlignment property to All.

razor
<DxFormLayout ItemCaptionAlignment="ItemCaptionAlignment.All">
    <DxFormLayoutGroup Caption="Personal information">
        <DxFormLayoutItem Caption="Full Name:">
            <DxTextBox Text="Mary Smith" />
        </DxFormLayoutItem>
        @* ... *@
    </DxFormLayoutGroup>
    <DxFormLayoutGroup Caption="Employment Information">
        @* ... *@
    </DxFormLayoutGroup>
</DxFormLayout>

In the following example, the ItemCaptionAlignment property is set to InGroups:

In the following example, the ItemCaptionAlignment property is set to None:

See Also

DevExpress.Blazor Namespace