Back to Devexpress

LayoutGroup.SelectedItems Property

windowsforms-devexpress-dot-xtralayout-dot-layoutgroup-74e3a24b.md

latest2.7 KB
Original Source

LayoutGroup.SelectedItems Property

Provides access to the collection of selected items within the current group.

Namespace : DevExpress.XtraLayout

Assembly : DevExpress.XtraLayout.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[Browsable(false)]
public virtual BaseItemCollection SelectedItems { get; }
vb
<Browsable(False)>
Public Overridable ReadOnly Property SelectedItems As BaseItemCollection

Property Value

TypeDescription
DevExpress.XtraLayout.Utils.BaseItemCollection

A DevExpress.XtraLayout.Utils.BaseItemCollection collection that contains the group’s selected items.

|

Remarks

Items within a group can be selected by setting an item’s BaseLayoutItem.Selected property to true. When an item is selected it is added to the group’s SelectedItems collection, and removed from the collection when unselected.

Selected items are painted with a different color than regular items. You can select an item(s) via code if you need to:

End-users can select items only in customization mode, which can be invoked by calling the LayoutControl.ShowCustomizationForm method.

See Also

ClearSelection()

CreateGroupForSelectedItems()

CreateTabbedGroupForSelectedGroup()

Selected

ShowCustomizationForm()

LayoutGroup Class

LayoutGroup Members

DevExpress.XtraLayout Namespace