Skip to main content

OptionsItemText.TextToControlDistance Property

Gets or sets the default distance between the text regions of layout items and the corresponding controls.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[XtraSerializableProperty(XtraSerializationVisibility.Hidden)]
public int TextToControlDistance { get; set; }

Property Value

Type Default Description
Int32 5

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
LayoutControl
.OptionsItemText .TextToControlDistance

Remarks

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