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

XtraLayoutPanelBase.LabelVertAlignment Property

Gets or sets how LabelControls are vertically aligned in relation to the text editors displayed to the label’s right (to the label’s left in right-to-left locales).

Namespace: DevExpress.Utils.Layout

Assembly: DevExpress.Utils.v24.2.dll

NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core

#Declaration

[DefaultValue(LabelVertAlignment.Default)]
[DXCategory("Layout")]
public LabelVertAlignment LabelVertAlignment { get; set; }

#Property Value

Type Default Description
DevExpress.Utils.Layout.LabelVertAlignment Default

The label’s vertical position relative to the adjacent text editor.

#Remarks

The LabelVertAlignment property specifies the vertical alignment of a LabelControl placed to the left of a DevExpress text editor (TextEdit and its descendants).

The LabelVertAlignment property accepts the following values.

  • Baseline

    The label’s baseline matches the baseline of the editor’s text.

    image

  • Center

    The label is vertically centered relatively to the editor’s box.

    image

  • Default

    The Default value is interpreted as follows:

    • For the StackPanel, the Default value is equivalent to Center.

    • For the TablePanel, the Default value is equivalent to Baseline.

See Also