OptionsItemTextGroup.TextToControlDistance Property
Gets or sets the distance between the text regions of layout items and the corresponding controls.
Namespace: DevExpress.XtraLayout
Assembly: DevExpress.XtraLayout.v19.2.dll
Declaration
Property Value
Type | Default | Description |
---|---|---|
Int32 | 3 | An integer value that represents the distance between the text regions of layout items and the corresponding controls. |
Property Paths
You can access this nested property as listed below:
Object Type | Path to TextToControlDistance |
---|---|
LayoutViewCard |
|
LayoutControlGroup |
|
LayoutGroup |
|
Remarks
If the OptionsItemTextGroup.TextAlignMode property is set to UseParentOptions (the default value) the distance between text regions and corresponding 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.
To specify the default distance between text regions and controls within the LayoutControl use the OptionsItemText.TextToControlDistance property.
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.