OptionsItemTextGroup.TextToControlDistance Property
Gets or sets the distance between text regions and controls for the current group’s layout items.
Namespace: DevExpress.XtraLayout
Assembly: DevExpress.XtraLayout.v24.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
Property Value
Type | Description |
---|---|
Int32 | The distance between text regions and controls in the current group. |
Property Paths
You can access this nested property as listed below:
Object Type | Path to TextToControlDistance |
---|---|
LayoutGroup |
|
Remarks
If the OptionsItemTextGroup.TextAlignMode property is set to UseParentOptions (the default value), the distance between text regions and controls within the group is specified by the group’s parent. The TextToControlDistance property is only in effect if the OptionsItemTextGroup.TextAlignMode property is set to AlignLocal, AutoSize, or CustomSize.
Use the LayoutControl.OptionsItemText.TextToControlDistance property to specify the distance between text regions and controls within the entire LayoutControl.
For a specific layout item, you can specify a custom distance between its text region and the control. To do this, set the item’s LayoutControlItem.TextAlignMode property to AutoSize or CustomSize, and then assign the required value to the item’s BaseLayoutItem.TextToControlDistance property.
Default Value
The default distance between a control and its text region is dependent on the currently applied skin, and the control’s position relative to the text region (BaseLayoutItem.TextLocation). For instance, the default distance in the Basic skin is either 3
(if an item’s TextLocation is Top
or Bottom
) or 12
(if the item’s TextLocation is Left
or Right
).