Skip to main content

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