[]
Saves the treeview contents to an Xml document.
public void WriteXml(string fileName, bool saveStyles = true, bool saveExpandedState = true)
| 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. |
Saves the treeview contents to an Xml document.
public void WriteXml(TextWriter tw, bool saveStyles = true, bool saveExpandedState = true)
| 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. |
Saves the treeview contents to an Xml document.
public void WriteXml(Stream stream, bool saveStyles = true, bool saveExpandedState = true)
| 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. |
Saves the treeview contents to an Xml document.
public void WriteXml(XmlTextWriter w, bool saveStyles = true, bool saveExpandedState = true)
| 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. |