BaseLayoutItem.Spacing Property

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

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v20.1.dll

Declaration

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

Property Value

Type Description
DevExpress.XtraLayout.Utils.Padding

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

Remarks

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.

SpacingVsPadding

NOTE

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

See Also