Skip to main content
A newer version of this page is available. .

DxFormLayout.CaptionPosition Property

Specifies the caption position.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v20.2.dll

NuGet Package: DevExpress.Blazor

Declaration

[Parameter]
public CaptionPosition CaptionPosition { get; set; }

Property Value

Type Description
CaptionPosition

One of the enumeration values.

Available values:

Name Description
Vertical

Displays the caption above the associated editor.

Horizontal

Displays the caption to the left of the item.

Remarks

The Form Layout provides the CaptionPosition property to specify where to display item captions: above the associated editor (Vertical) or at its left (Horizontal).

<DxFormLayout CaptionPosition="CaptionPosition.Vertical">
    <DxFormLayoutItem Caption="Location:" >
        ...
    </DxFormLayoutItem>
    <DxFormLayoutItem Caption="Check in:" >
        ...
    </DxFormLayoutItem>
</DxFormLayout>

Run Demo: Form Layout - Caption Position

See Also