[]
        
(Showing Draft Content)

C1.Win.TreeView.C1TreeView.WriteXml

WriteXml Method

WriteXml(string, bool, bool)

Saves the treeview contents to an Xml document.

Declaration
public void WriteXml(string fileName, bool saveStyles = true, bool saveExpandedState = true)
Parameters
Type Name Description
string fileName

Name of the file to save, including the path.

bool saveStyles

Save styles of treeview.

bool saveExpandedState

Save treeview in expanded/collapsed state.

WriteXml(TextWriter, bool, bool)

Saves the treeview contents to an Xml document.

Declaration
public void WriteXml(TextWriter tw, bool saveStyles = true, bool saveExpandedState = true)
Parameters
Type Name Description
TextWriter tw

The TextWriter where the document is saved.

bool saveStyles

Save styles of treeview.

bool saveExpandedState

Save treeview in expanded/collapsed state.

WriteXml(Stream, bool, bool)

Saves the treeview contents to an Xml document.

Declaration
public void WriteXml(Stream stream, bool saveStyles = true, bool saveExpandedState = true)
Parameters
Type Name Description
Stream stream

The Stream where the document is saved.

bool saveStyles

Save styles of treeview.

bool saveExpandedState

Save treeview in expanded/collapsed state.

WriteXml(XmlTextWriter, bool, bool)

Saves the treeview contents to an Xml document.

Declaration
public void WriteXml(XmlTextWriter w, bool saveStyles = true, bool saveExpandedState = true)
Parameters
Type Name Description
XmlTextWriter w

The System.Xml.XmlTextWriter where the document is saved.

bool saveStyles

Save styles of treeview.

bool saveExpandedState

Save treeview in expanded/collapsed state.