Back to Devexpress

FormLayoutItemBase.Caption Property

blazor-devexpress-dot-blazor-dot-base-dot-formlayoutitembase-5e2e9d10.md

latest1.8 KB
Original Source

FormLayoutItemBase.Caption Property

Specifies a Form Layout group, tab, or item caption.

Namespace : DevExpress.Blazor.Base

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(null)]
[Parameter]
public string Caption { get; set; }

Property Value

TypeDefaultDescription
Stringnull

A string that specifies the caption.

|

Remarks

A caption is a short description or explanation. You can specify a caption for a group, tab, or item:

razor
<DxFormLayout>
    <DxFormLayoutGroup Caption="Personal Information">
        <DxFormLayoutItem Caption="First Name:" ColSpanMd="6">
            @* ... *@
        </DxFormLayoutItem>
    </DxFormLayoutGroup>
    <DxFormLayoutGroup Caption="Work Information" BeginRow="true">
        <DxFormLayoutItem Caption="Position:" ColSpanMd="6">
            @* ... *@
        </DxFormLayoutItem>
    </DxFormLayoutGroup>
</DxFormLayout>

To specify a custom layout for a group header, use the HeaderTemplate property.

Run Demo: Form Layout - Groups

See Also

FormLayoutItemBase Class

FormLayoutItemBase Members

DevExpress.Blazor.Base Namespace