RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomTreeView.LoadFromStream Method

Reads tree view data from a stream and stores the contents in the tree view.

Pascal
procedure LoadFromStream(Stream: TStream);
C++
__fastcall LoadFromStream(TStream Stream);

Use LoadFromStream to read the nodes of the tree view from the specified stream. LoadFromStream adds the nodes in the stream data to the tree view. 

The format for tree view data used by the SaveToStream and LoadFromStream methods lists the Text property for each node. Data associated with the nodes is not saved or loaded. 

For example, an application can save the information displayed in a tree view as the data in a Binary Large Object (BLOB) field of a dataset using the SaveToStream method. LoadFromStream can later retrieve the data using a BLOB stream. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!