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

OptionsPrintBase.TextToControlDistance Property

Gets or sets the distance between a layout item’s text and its control in the LayoutControl’s print/export output.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v19.2.dll

Declaration

[DefaultValue(-1)]
[XtraSerializableProperty]
public int TextToControlDistance { get; set; }

Property Value

Type Default Description
Int32 -1

A value that specifies the distance between the text region and control, in pixels.

Property Paths

You can access this nested property as listed below:

Object Type Path to TextToControlDistance
LayoutViewCard
.OptionsPrint.TextToControlDistance
LayoutViewField
.OptionsPrint.TextToControlDistance
EmptySpaceItem
.OptionsPrint.TextToControlDistance
LayoutControlGroup
.OptionsPrint.TextToControlDistance
LayoutControlItem
.OptionsPrint.TextToControlDistance
LayoutGroup
.OptionsPrint.TextToControlDistance
LayoutRepositoryItem
.OptionsPrint.TextToControlDistance
SplitterItem
.OptionsPrint.TextToControlDistance

Remarks

If a layout item (e.g. a layout group) contains child items, the TextToControlDistance property’s value is propagated to all child items. Any nested item can override the parent’s distance value with the item’s TextToControlDistance property.

You can customize the distance between the text and control of all layout items in a centralized way, using the LayoutControl’s OptionsPrintControl.TextToControlDistance.

The TextToControlDistance property is not supported if the OptionsPrintControl.OldPrinting property is set to true.

See Also