Skip to main content

CaptionPosition Enum

Lists values that specify the caption position.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v23.2.dll

NuGet Package: DevExpress.Blazor

Declaration

public enum CaptionPosition

Members

Name Description
Vertical

Displays the caption above the associated editor.

Horizontal

Displays the caption to the left of the item.

Remarks

You can display the caption above an item (Vertical) or at its left (Horizontal). Use the item’s CaptionPosition property to position a single item. To specify the position for all captions in the Form Layout component, layout group, tab pages, tab page, or item, use the corresponding object’s CaptionPosition property. Individual settings have higher priority.

Vertical position

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

Run Demo: Form Layout - Caption Position

See Also