Skip to main content

Spacing and Paddings

  • 2 minutes to read

For a layout item/group it’s possible to customize the outer and inner indents of the item’s border. You can change these indents to increase or decrease the space between neighboring layout items and so improve the look of your application.

For regular layout items and tabbed groups, their borders are not visible, though they still exist and you are still able to specify the border’s inner and outer indents. For regular layout groups the borders are visible by default, but they can be hidden via the LayoutGroup.GroupBordersVisible property.

The inner indents (the space between the item’s border and client area) is specified by the BaseLayoutItem.Padding property. The outer indents (the space between the item’s border and its real edges) is specified by the BaseLayoutItem.Spacing property. Note that these properties allow you to specify different indents at the right, top, left and bottom sides of the layout item.

The following image clarifies the difference between the Padding and Spacing properties for a regular layout group. The inner and outer indents at the right, top, left and bottom sides match and are equal to 10 and 20 respectively.

SpacingVsPadding

Note

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

Member Table