Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

CaptionPosition Enum

Lists values that specify the caption position.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
public enum CaptionPosition

#Members

Name Description
Vertical

Displays the caption above the associated editor.

Horizontal

Displays the caption to the left of the associated editor.

#Remarks

Form Layout can display a caption above an item or at its left. Use CaptionPosition properties to position item captions. Individual settings have higher priority.

Positioned Elements Property
A single caption. DxFormLayoutItem.CaptionPosition
All captions in a group. DxFormLayoutGroup.CaptionPosition
All captions in a tab. DxFormLayoutTabPage.CaptionPosition
All captions in all tabs. DxFormLayoutTabPages.CaptionPosition
All captions in the component. DxFormLayout.CaptionPosition

If there is not enough space for the caption, Form Layout moves it above the associated editor (the Vertical position) regardless of the CaptionPosition property value.

Vertical position

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

Run Demo: Form Layout - Caption Position

See Also