Skip to main content
A newer version of this page is available. .

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

[XtraSerializableProperty]
public int TextToControlDistance { get; set; }

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
.OptionsItemText.TextToControlDistance
LayoutControlGroup
.OptionsItemText.TextToControlDistance
LayoutGroup
.OptionsItemText.TextToControlDistance

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.

See Also