Back to Devexpress

LayoutGroup.CanGroupSelectedItems Property

windowsforms-devexpress-dot-xtralayout-dot-layoutgroup-fa474aa9.md

latest2.2 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[Browsable(false)]
public bool CanGroupSelectedItems { get; }
vb
<Browsable(False)>
Public ReadOnly Property CanGroupSelectedItems As Boolean

Property Value

TypeDescription
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.

See Also

CreateGroupForSelectedItems()

LayoutGroup Class

LayoutGroup Members

DevExpress.XtraLayout Namespace