Docking Tab for WinForms | ComponentOne
Behavior / Text Editing
In This Topic
    Text Editing
    In This Topic

    The DockingTab control enables you to edit the text appearing on the tab by simply double-clicking it at runtime. Further, with the added keyboard support, you can also edit the text appearing on the selected tab by pressing the F2 key.

    Application UI showing renaming capability in one of the tab pages

    For this purpose, C1DockingTab class provides the CanRenameTabs property. This can be set through the Properties window, or by using the code snippet in the code editor as given below:

    C#
    Copy Code
    // Allow users to rename tab at runtime
    dockingTab.CanRenameTabs = true;