Skip to main content
.NET 8.0+

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

IModelLayoutManagerOptions.CaptionHorizontalAlignment Property

Specifies the default horizontal alignment of the layout group and item captions.

Namespace: DevExpress.ExpressApp.Model

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

[DefaultValue(HorzAlignment.Default)]
HorzAlignment CaptionHorizontalAlignment { get; set; }

#Property Value

Type Default Description
HorzAlignment Default

A HorzAlignment enumeration value specifying the default horizontal alignment of the layout group and item captions.

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.

#Property Paths

You can access this nested property as listed below:

Object Type Path to CaptionHorizontalAlignment
IModelOptions
.LayoutManagerOptions .CaptionHorizontalAlignment

#Remarks

This property is in effect for XAF Windows Forms applications only.

The following values are available:

  • Center - centers captions.
  • Default - places captions at the left.
  • Far - places captions to the right.
  • Near - places captions to the left.
See Also