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

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

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DXCategory("Layout")]
[XtraSerializableProperty]
[XtraSerializablePropertyId(200)]
public virtual Padding Padding { get; set; }

#Property Value

Type Description
DevExpress.XtraLayout.Utils.Padding

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

#Remarks

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.

SpacingVsPadding

Note

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

See Also