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.v20.1.dll

Declaration

[DXCategory("Layout")]
[XtraSerializableProperty]
public virtual Padding Padding { get; set; }
<DXCategory("Layout")>
<XtraSerializableProperty>
Public Overridable Property Padding As Padding

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