Skip to main content
A newer version of this page is available. .

LayoutController.Rename(BaseLayoutItem) Method

Starts layout item renaming.

Namespace: DevExpress.Xpf.Docking

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

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Docking, DevExpress.Wpf.Navigation

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 to rename the specified item’s caption. The method is in effect if item renaming is enabled via the DockLayoutManager.AllowLayoutItemRename option.

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

See Also