Skip to main content

DevExpress v24.1 Update — Your Feedback Matters

Our What's New in v24.1 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

EmptySpaceItem Class

Used to insert empty regions in the Layout Control.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public class EmptySpaceItem :
    LayoutControlItem,
    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.

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.

See Also