Back to Devexpress

EmptySpaceItem Class

windowsforms-devexpress-dot-xtralayout-7b30e335.md

latest3.5 KB
Original Source

EmptySpaceItem Class

Used to insert empty regions in the Layout Control.

Namespace : DevExpress.XtraLayout

Assembly : DevExpress.XtraLayout.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

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

The following members 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.

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

Object MarshalByRefObject Component DevExpress.XtraLayout.SupportVisitor BaseLayoutItem LayoutItem LayoutControlItem EmptySpaceItem SimpleLabelItem

SplitterItem

See Also

EmptySpaceItem Members

Empty Space Items

DevExpress.XtraLayout Namespace