windowsforms-devexpress-dot-xtralayout-dot-optionsitemtext-a2768f9c.md
Gets or sets the default distance between the text regions of layout items and the corresponding controls.
Namespace : DevExpress.XtraLayout
Assembly : DevExpress.XtraLayout.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[XtraSerializableProperty(XtraSerializationVisibility.Hidden)]
public int TextToControlDistance { get; set; }
<XtraSerializableProperty(XtraSerializationVisibility.Hidden)>
Public Property TextToControlDistance As Integer
| Type | Default | Description |
|---|---|---|
| Int32 | 5 |
An integer value that represents the distance between the text regions of layout items and the corresponding controls.
|
You can access this nested property as listed below:
| Object Type | Path to TextToControlDistance |
|---|---|
| LayoutControl |
.OptionsItemText .TextToControlDistance
|
This property specifies the default distance between text regions and controls displayed within the LayoutControl.
Each group can override the LayoutControl’s TextToControlDistance property setting. To do this, set the group’s OptionsItemTextGroup.TextAlignMode property to AlignLocal , AutoSize or CustomSize and set a custom distance to the group’s OptionsItemTextGroup.TextToControlDistance property.
You can also override the distance between the text region and control for a specific layout item. To do this, set the item’s LayoutControlItem.TextAlignMode property to to AutoSize or CustomSize and then assign the required value to the item’s BaseLayoutItem.TextToControlDistance property.
See Also
OptionsItemTextGroup.TextAlignMode
OptionsItemTextGroup.TextToControlDistance