IModelWinLayoutManagerOptions.TextAlignModeItem Property
Specifies the default alignment settings of layout items’ controls.
Namespace: DevExpress.ExpressApp.Win.SystemModule
Assembly: DevExpress.ExpressApp.Win.v24.1.dll
NuGet Packages: DevExpress.ExpressApp.Win, DevExpress.ExpressApp.Win.Design
NuGet Package: DevExpress.ExpressApp.Win
Declaration
Property Value
Type | Default | Description |
---|---|---|
TextAlignModeItem | UseParentOptions | An integer value specifying the default alignment settings of layout items’ controls. |
Available values:
Name | Description |
---|---|
UseParentOptions | Alignment settings are determined by the item’s parent. The item’s BaseLayoutItem.TextToControlDistance property is ignored. In this mode, this setting is determined by the item’s parent. The item’s immediate parent is a group which provides the LayoutGroup.OptionsItemText property to control the alignment settings of its items. However, by default the group’s OptionsItemTextGroup.TextAlignMode property is set to TextAlignModeGroup.UseParentOptions. In this mode, the alignment settings of the group’s items 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). |
AutoSize | The auto-size feature is applied to the current layout item. The item’s text region is 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 layout item’s text region must be specified manually via the BaseLayoutItem.TextSize property. |
Remarks
This property is in effect for XAF Windows Forms applications only.
The following values are available:
- AutoSize - the auto-size feature is applied to a layout item. The item’s text region is 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 a layout item’s text region must be specified manually using the BaseLayoutItem.TextSize property.
- UseParentOptions - alignment settings are determined by an item’s group.