Skip to main content

BaseLayoutItem.Padding Property

Gets or sets the amount of space in pixels between the item’s borders and its contents.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v24.1.dll

NuGet Package: DevExpress.Win.Navigation


public virtual Padding Padding { get; set; }

Property Value

Type Description

A DevExpress.XtraLayout.Utils.Padding object that contains inner indents between the layout item’s borders and its contents.


The Padding property specifies the indents between the item’s top, left, bottom and right edges and the item’s contents. To specify the outer indents use the BaseLayoutItem.Spacing 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 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 displayed as tabs within a tabbed group.

See Also