Back to Devexpress

DockLayoutManager.Rename(BaseLayoutItem) Method

wpf-devexpress-dot-xpf-dot-docking-dot-docklayoutmanager-dot-rename-x28-devexpress-dot-xpf-dot-docking-dot-baselayoutitem-x29.md

latest2.4 KB
Original Source

DockLayoutManager.Rename(BaseLayoutItem) Method

Starts item renaming.

Namespace : DevExpress.Xpf.Docking

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

NuGet Package : DevExpress.Wpf.Docking

Declaration

csharp
public bool Rename(
    BaseLayoutItem item
)
vb
Public Function Rename(
    item As BaseLayoutItem
) As Boolean

Parameters

NameTypeDescription
itemBaseLayoutItem

A BaseLayoutItem to be renamed.

|

Returns

TypeDescription
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

Rename(BaseLayoutItem)

AllowLayoutItemRename

AllowDockItemRename

IsRenaming

AllowRename

Layout UI Items

DockLayoutManager Class

DockLayoutManager Members

DevExpress.Xpf.Docking Namespace