Skip to main content

LayoutGroup.CanGroupSelectedItems Property

Returns whether a new group can be created within the current group which will display selected child items.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[Browsable(false)]
public bool CanGroupSelectedItems { get; }

Property Value

Type Description
Boolean

true if a new group can be created; otherwise, false.

Remarks

This method returns whether a new group can be created for selected items via the LayoutGroup.CreateGroupForSelectedItems method.

If a single item is selected that represents a group this method returns false. If a single items is selected that represents a regular layout item this method returns true.

If two or more child items are selected this method checks whether they can be combined into a single group. Items can be combined into a group if they have adjacent borders. If the adjacent borders only partially overlap the items cannot be combined into a new group. For instance, in the following image the layoutControlItem1 and layoutControlItem2 items cannot be grouped as their borders partially overlap.

CanGroupSelectedItems_PartiallyOverlapped

See Also