Back to Devexpress

BaseLayoutItem.Padding Property

windowsforms-devexpress-dot-xtralayout-dot-baselayoutitem-3783a030.md

latest2.4 KB
Original Source

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

NuGet Package : DevExpress.Win.Navigation

Declaration

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

Property Value

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

Note

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

See Also

Spacing

GroupBordersVisible

EnableIndentsInGroupsWithoutBorders

UseSkinIndents

BaseLayoutItem Class

BaseLayoutItem Members

DevExpress.XtraLayout Namespace