[]
        
(Showing Draft Content)

Load and Save Docking Tab Layout

You can save and load the layout of the DockingTab by using the SaveLayout and RestoreLayout methods. The syntax for the methods is as follows:

//Saves the current layout of the tabs on the form to the specified file.
static void SaveLayout(Form form, string filename);
//Restores the previously saved layout of the tabs on the form from the specified file
Static void RestoreLayout(Form form, string filename);                   

The following code is an example of how these methods can be applied:

//Saves the current layout of the tabs on the form to the specified file.
C1DockingTab.SaveLayout (myForm, "myLayoutFile.xml");
//Restores the previously saved layout of the tabs on the form from the specified file
C1DockingTab.RestoreLayout(myForm, "myLayoutFile.xml");