IModelWinLayoutItem.TextAlignMode Property
Specifies the alignment settings of the layout item’s control.
Namespace: DevExpress.ExpressApp.Win.SystemModule
Assembly: DevExpress.ExpressApp.Win.v24.2.dll
NuGet Packages: DevExpress.ExpressApp.Win, DevExpress.ExpressApp.Win.Design
#Declaration
[DefaultValue(TextAlignModeItem.UseParentOptions)]
TextAlignModeItem TextAlignMode { get; set; }
#Property Value
Type | Default | Description |
---|---|---|
Text |
Use |
A Text |
Available values:
Name | Description |
---|---|
Use |
Alignment settings are determined by the item’s parent. The item’s Base The item’s immediate parent is a group which provides the Layout For the root group, its parent is the Layout |
Auto |
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. |
Custom |
Enables custom size mode, in which the size of the layout item’s text region must be specified manually via the Base |
#Remarks
This property is considered in XAF Windows Forms applications.
The following values are available:
- 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 using the BaseLayoutItem.TextSize property.
- UseParentOptions - alignment settings are determined by the item’s group.