Skip to main content
.NET Framework 4.6.2+

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

IModelLayoutElementWithCaptionOptions.CaptionHorizontalAlignment Property

Specifies the horizontal alignment of a layout element’s caption.

Namespace: DevExpress.ExpressApp.Model

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

HorzAlignment CaptionHorizontalAlignment { get; set; }

#Property Value

Type Description
HorzAlignment

A DevExpress.Utils.HorzAlignment enumeration value specifying the horizontal alignment of a layout element’s caption.

Available values:

Name Description
Default

Places an object or text at the default position, which is determined by a control.

Near

Places an object/text at a near position.

Center

Centers an object or text within a region.

Far

Places an object/text at a far position.

#Remarks

This property is considered in XAF Windows Forms applications only.

The following values are available:

  • Center - centers the caption.
  • Default - places the caption on the left.
  • Far - places the caption on the right.
  • Near - places the caption on the left.
See Also