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
Related API Members
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.