windowsforms-devexpress-dot-xtralayout-dot-layoutgroup-fa474aa9.md
Returns whether a new group can be created within the current group which will display selected child items.
Namespace : DevExpress.XtraLayout
Assembly : DevExpress.XtraLayout.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[Browsable(false)]
public bool CanGroupSelectedItems { get; }
<Browsable(False)>
Public ReadOnly Property CanGroupSelectedItems As Boolean
| Type | Description |
|---|---|
| Boolean |
true if a new group can be created; otherwise, false.
|
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.
See Also