Skip to main content

BaseLayoutItem.Spacing Property

Gets or sets the outer indents of the item’s borders.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v22.2.dll

NuGet Package: DevExpress.Win.Navigation


public virtual Padding Spacing { get; set; }

Property Value

Type Description

A DevExpress.XtraLayout.Utils.Padding object that contains the outer indents of the layout item’s borders.


This property specifies the outer indents of the item’s borders. Changing this property modifies the space between layout items. To specify the inner indents between the item’s borders and its contents use the BaseLayoutItem.Padding property.

Regular layout items have no visible border. So the difference between the Spacing and Padding properties cannot be observed. For layout groups the borders are visible. The following image demonstrates the indents which are specified by the Spacing.Left and Padding.Left properties for a sample layout group.



The Spacing and Padding properties are not in effect for groups that are displayed as tabs within a tabbed group.

See Also