Hide

SftTree/NET 2.0 - Tree Control for Windows Forms

Display
Print

GetContents Method, SftTree Class

Returns the contents of the control in an XML document.

Class: SftTree
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET

Syntax

public static XmlDocument GetContents(
    SftTree SftTreeControl,
    PersistContentsEnum contents );
Public Shared Function GetContents(
    ByVal SftTreeControl As SftTree,
    ByVal contents As PersistContentsEnum
  ) As XmlDocument

Parameters

SftTreeControl

Defines the SftTree/NET control whose contents are to be retrieved.

contents

Defines processing options.

Return Value

An XML document containing the requested contents.

Comments

Returns the contents of the control in an XML document.

Saving/loading the tree control contents using SftTree.GetContents/SftTree.SetContents saves/loads all data of the specified category (contents parameter). An application may wish to limit the amount of data saved by implementing its own save/load mechanism and save only the properties that are needed. Alternatively, if an application has an external data source, it may rebuild the tree control contents from its own data source, which may be significantly faster than an XML document. By implementing its own save/load mechanism an application could use a regular file or a custom format, which may also be significantly faster than an XML document.

See Also SftTree Class | Classes | SftTree/NET 2.0



Spring Break!

Our offices will be closed this week (March 18 through March 22).

We'll be back March 24 to address any pending sales and support issues.