You can save and load the layout of the C1DockingTab by using the SaveLayout and RestoreLayout methods. The syntax for the methods is as follows:
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
'Saves the current layout of the tabs on the form to the specified file. Shared Sub SaveLayout(form As Form, filename As String) 'Restores the previously saved layout of the tabs on the form from the specified file Sub RestoreLayout(form As Form, filename As String) |
To write code in C#
C# |
Copy Code
|
---|---|
//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:
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
//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") |
To write code in C#
C# |
Copy Code
|
---|---|
//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"); |