Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

LayoutControlItem.CaptionToControlDistance Property

Gets or sets the distance between the item’s caption and control. This is a dependency property.

Namespace: DevExpress.Xpf.Docking

Assembly: DevExpress.Xpf.Docking.v24.2.dll

NuGet Package: DevExpress.Wpf.Docking

#Declaration

public double CaptionToControlDistance { get; set; }

#Property Value

Type Description
Double

A Double value that specifies the distance between the item’s caption and control.

#Remarks

The item’s caption and control are specified by the BaseLayoutItem.Caption and LayoutControlItem.Control properties, respectively. The default distance between the item’s caption and control is specified by the control’s alignment, which can be changed via the BaseLayoutItem.CaptionAlignMode properties of the item itself, and its group. Use the CaptionToControlDistance property to adjust the control’s default offset.

See Also