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

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

    Parameters

    tw
    The System.IO.TextWriter where the document is saved.
    saveStyles
    Save styles of treeview.
    saveExpandedState
    Save treeview in expanded/collapsed state.
    See Also