Skip to main content

BaseLayoutItem.TextToControlDistance Property

Gets or sets the distance between the control displayed within the layout item and the text region.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DXCategory("Text")]
[XtraSerializableProperty]
[XtraSerializablePropertyId(202)]
public virtual int TextToControlDistance { get; set; }

Property Value

Type Description
Int32

An integer that specifies the distance, in pixels.

Remarks

The TextToControlDistance property is supported by LayoutControlItem items which can display custom controls. Use the TextToControlDistance property to set a custom distance between the item’s control and its text region. The TextToControlDistance property is in effect if the item’s LayoutControlItem.TextAlignMode property is set to AutoSize or CustomSize. If the LayoutControlItem.TextAlignMode property is set to UseParentOptions (the default value) the distance between the item’s text region and control is specified by the item’s parent.

To specify the default distance between text regions and controls within the LayoutControl and specific groups use the LayoutControl’s OptionsItemText.TextToControlDistance or group’s OptionsItemTextGroup.TextToControlDistance property.

See Also