Back to Devexpress

BaseLayoutItem.TextToControlDistance Property

windowsforms-devexpress-dot-xtralayout-dot-baselayoutitem-0eea1a5a.md

latest3.1 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Text")]
[XtraSerializableProperty]
[XtraSerializablePropertyId(202)]
public virtual int TextToControlDistance { get; set; }
vb
<XtraSerializableProperty>
<XtraSerializablePropertyId(202)>
<DXCategory("Text")>
Public Overridable Property TextToControlDistance As Integer

Property Value

TypeDescription
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

Text

TextLocation

TextSize

TextVisible

TextAlignMode

OptionsItemText.TextToControlDistance

OptionsItemTextGroup.TextToControlDistance

BaseLayoutItem Class

BaseLayoutItem Members

DevExpress.XtraLayout Namespace