Back to Devexpress

BaseLayoutItem.Selected Property

windowsforms-devexpress-dot-xtralayout-dot-baselayoutitem-73208e7f.md

latest2.8 KB
Original Source

BaseLayoutItem.Selected Property

Gets or sets the selection state of the current item.

Namespace : DevExpress.XtraLayout

Assembly : DevExpress.XtraLayout.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

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

Property Value

TypeDescription
Boolean

true if the current layout item is selected; otherwise, false.

|

Remarks

The Selected property allows you to get and set an item’s selection state. Selected items are painted with a different color than regular items. You can select an item(s) via code if you need to:

To access the selected items within a specific layout item group use the LayoutGroup.SelectedItems property.

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

See Also

ClearSelection()

CreateGroupForSelectedItems()

CreateTabbedGroupForSelectedGroup()

SelectedItems

HideSelectedItems()

RenameSelectedItem()

SelectParentGroup()

ShowCustomizationForm()

BaseLayoutItem Class

BaseLayoutItem Members

DevExpress.XtraLayout Namespace