Intersoft WebTextEditor Documentation
How-to: Save and Load ToolBar Structure
See Also Send Feedback
Intersoft WebTextEditor > WebTextEditor > ToolBar > Custom ToolBar > How-to: Save and Load ToolBar Structure

Glossary Item Box

WebTextEditor provides a property to save and load toolbar structure.

In this topic, you will learn how to save and load.

To save and load toolbar structure

  1. Drag two ASP.NET buttons into the WebForm.
  2. Use SaveToolBarsStructureToXml() method to save the toolbar structure, and use LoadToolBarsStructureFromXml() method to load the toolbar structure.
  3. Invoke the method in Button_Click server side event like following:
    C# Copy Code
    protected void Button1_Click(object sender, EventArgs e)
    {     
       WebTextEditor1.SaveToolBarsStructureToXml(Server.MapPath("XML/New.xml"));
    } 
    
    protected void Button2_Click(object sender, EventArgs e)
    {     
       WebTextEditor1.LoadToolBarsStructureFromXml(Server.MapPath("XML/New.xml"));
    }
    

See Also

©2013. All Rights Reserved.