/// <summary> /// Loads the treeview content from the specified XML stream /// </summary> public void LoadXml(Stream stream) { TreeViewXML xml = new TreeViewXML(this); xml.LoadFromXML(stream); }
/// <summary> /// Saves the treeview content to the specified XML stream /// </summary> /// <param name="stream">Stream where to save the TreeView XML content </param> /// <param name="encoding">Text encoding used to encode the content</param> public void SaveXml(Stream stream, Encoding encoding) { TreeViewXML xml = new TreeViewXML(this); xml.SaveToXML(stream, encoding); }
/// <summary> /// Loads the treeview content from the specified XML file /// </summary> public void LoadXml(string fileName) { TreeViewXML xml = new TreeViewXML(this); xml.LoadFromXML(fileName); }
/// <summary> /// Saves the treeview content to the specified XML file /// </summary> /// <param name="fileName">File name of the file where to save the treeview XML representation</param> /// <param name="encoding">Text encoding used to encode the content</param> public void SaveXml(string fileName, Encoding encoding) { TreeViewXML xml = new TreeViewXML(this); xml.SaveToXML(fileName, encoding); }