BaseLayoutItem.Spacing Property
Gets or sets the outer indents of the item’s borders.
Namespace: DevExpress.XtraLayout
Assembly: DevExpress.XtraLayout.v24.2.dll
Declaration
[DXCategory("Layout")]
[XtraSerializableProperty]
[XtraSerializablePropertyId(200)]
public virtual Padding Spacing { get; set; }
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.
Note
The Spacing and Padding properties are not in effect for groups that are displayed as tabs within a tabbed group.