TreeView for WinForms | ComponentOne
C1.Win.TreeView Namespace / C1TreeView Class / WriteXml Method / WriteXml(XmlTextWriter,Boolean,Boolean) Method
The System.Xml.XmlTextWriter where the document is saved.
Save styles of treeview.
Save treeview in expanded/collapsed state.

In This Topic
    WriteXml(XmlTextWriter,Boolean,Boolean) Method
    In This Topic
    Saves the treeview contents to an Xml document.
    Syntax
    'Declaration
     
    
    Public Overloads Sub WriteXml( _
       ByVal w As XmlTextWriter, _
       Optional ByVal saveStyles As Boolean, _
       Optional ByVal saveExpandedState As Boolean _
    ) 
    public void WriteXml( 
       XmlTextWriter w,
       bool saveStyles,
       bool saveExpandedState
    )

    Parameters

    w
    The System.Xml.XmlTextWriter where the document is saved.
    saveStyles
    Save styles of treeview.
    saveExpandedState
    Save treeview in expanded/collapsed state.
    See Also