Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+
  • The page you are viewing does not exist in the .NET Standard 2.0+ platform documentation. This link will take you to the parent topic of the current section.

IModelWinLayoutGroup.TextAlignMode Property

Specifies the alignment settings of the controls displayed in the current group.

Namespace: DevExpress.ExpressApp.Win.SystemModule

Assembly: DevExpress.ExpressApp.Win.v19.2.dll

Declaration

[DefaultValue(TextAlignModeGroup.UseParentOptions)]
TextAlignModeGroup TextAlignMode { get; set; }

Property Value

Type Default Description
TextAlignModeGroup **UseParentOptions**

A TextAlignModeGroup enumeration value specifying the alignment settings of the controls displayed in the current group.

Available values:

Name Description
UseParentOptions

Alignment settings are determined by the group’s parent. The OptionsItemTextGroup.TextToControlDistance and OptionsItemTextGroup.AlignControlsWithHiddenText properties of the current group are ignored. In this mode, these settings are determined by the group’s parent.

For the root group, its parent is the LayoutControl itself (the LayoutControl’s alignment settings are specified by the LayoutControl.OptionsItemText property). For other groups their parents are upper-level groups (a group’s alignment settings are specified by the LayoutGroup.OptionsItemText property).

AlignLocal

Controls displayed within the current group are equally aligned independent of other groups.

AutoSize

The auto-size feature is applied to the layout items of the current group. The text regions of the layout items are automatically resized to the minimum width that allows the text to be displayed in its entirety.

CustomSize

Enables custom size mode, in which the size of the text regions of the group’s layout items must be specified manually via the BaseLayoutItem.TextSize property.

AlignWithChildren

Controls displayed within the current and nested groups are equally aligned independent of other groups.

Remarks

This property is considered in XAF Windows Forms applications.

The following values are available:

  • AlignLocal - controls displayed within the current group are automatically aligned independently from other groups.
  • AutoSize - the auto-size feature is applied to the layout items of the current group. The text regions of the layout items are automatically resized to the minimum width that allows the text to be displayed in its entirety.
  • CustomSize - enables custom size mode, in which the size of the text regions of the group’s layout items must be specified manually using the BaseLayoutItem.TextSize property.
  • UseParentOptions - alignment settings are determined by the group’s parent.
See Also