Back to Devexpress

BaseLayoutItem.Spacing Property

windowsforms-devexpress-dot-xtralayout-dot-baselayoutitem-ccd8c4c0.md

latest2.4 KB
Original Source

BaseLayoutItem.Spacing Property

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

Namespace : DevExpress.XtraLayout

Assembly : DevExpress.XtraLayout.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

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

Property Value

TypeDescription
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.

See Also

Padding

GroupBordersVisible

EnableIndentsInGroupsWithoutBorders

UseSkinIndents

BaseLayoutItem Class

BaseLayoutItem Members

DevExpress.XtraLayout Namespace