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.Rename(BaseLayoutItem) Method

Starts item renaming.

Namespace: DevExpress.Xpf.Docking

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

NuGet Package: DevExpress.Wpf.Docking

#Declaration

public bool Rename(
    BaseLayoutItem item
)

#Parameters

Name Type Description
item BaseLayoutItem

A BaseLayoutItem to be renamed.

#Returns

Type Description
Boolean

true if item renaming has been initiated; otherwise, false.

#Remarks

The Rename method opens a text box allowing an end-user to rename the specified item’s caption. The method is in effect if item renaming is enabled. See the DockLayoutManager.AllowLayoutItemRename and DockLayoutManager.AllowDockItemRename options.

It’s possible to prevent a specific item from being renamed via the BaseLayoutItem.AllowRename property.

See Also