EmptySpaceItem Class

Used to insert empty regions in the Layout Control.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v20.1.dll

Declaration

public class EmptySpaceItem :
    LayoutControlItem,
    IFixedLayoutControlItem,
    IFixedLayoutControlItemEx
Public Class EmptySpaceItem
    Inherits LayoutControlItem
    Implements IFixedLayoutControlItem,
               IFixedLayoutControlItemEx

Related API Members

The following members accept/return EmptySpaceItem objects:

Remarks

Layout items within the LayoutControl are always resized to occupy the entire region of their parent group. In specific cases, you may want to add an empty region to the group. Use the EmptySpaceItem item to do this. Position it next to a specific item and resize it as your needs dictate. Or, you may specify custom size constraints for the EmptySpaceItem via it's LayoutControlItem.SizeConstraintsType, BaseLayoutItem.MaxSize, BaseLayoutItem.MinSize and BaseLayoutItem.Size properties.

The following image shows a layout control which contains three layout items within the root group: two regular LayoutControlItem items and one EmptySpaceItem item.

EmptySpaceItemNew

An EmptySpaceItem object can be created via its constructor. To add an item to a group in code, use the LayoutGroup.Add and BaseLayoutItem.Move methods.

See the Empty Space Items topic for more information.

Inheritance

See Also