Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DockLayoutManager.SelectItem(BaseLayoutItem, SelectionMode) Method

Selects the specified BaseLayoutItem in Customization Mode with specified selection options.

Namespace: DevExpress.Xpf.Docking

Assembly: DevExpress.Xpf.Docking.v24.2.dll

NuGet Package: DevExpress.Wpf.Docking

#Declaration

public bool SelectItem(
    BaseLayoutItem item,
    SelectionMode mode
)

#Parameters

Name Type Description
item BaseLayoutItem

A BaseLayoutItem to be selected.

mode SelectionMode

A DevExpress.Xpf.Layout.Core.SelectionMode enumeration value specifying selection option.

#Returns

Type Description
Boolean

true if the specified BaseLayoutItem is successfully selected; otherwise, false.

#Remarks

Items can be selected in Customization Mode provided that their BaseLayoutItem.AllowSelection option is enabled. Depending on the mode parameter, either single or multiple items can be selected at the same time.

See Also