[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Loads tree nodes from the specified stream.
Source position: comctrls.pp line 3708
public procedure TCustomTreeView.LoadFromStream( |
Stream: TStream |
); |
Stream |
|
TStream instance with the tree node data loaded in the method. |
LoadFromStream is a method used to load the tree nodes from the specified TStream instance into the Items property. Stream contains the textual representation for the tree node hierarchy generated using SaveToStream.
Each tree node in Stream is represented using leading Tab (#9) characters for the level in the tree node, followed by the Text for the node and an end-of-line sequence (#13#10). TTreeNode instances are created and added to the Items property when the node values are read from the stream.
Remark: | LoadFromStream does not change the position in Stream prior to reading node values. It assumes the stream position has been set in the calling routine. It does not reset the stream position when the method has been completed. |
Use SaveToStream to store the textual representation for tree nodes in Items to a given TStream instance.
Use SaveToFile and LoadFromFile to read and write the node hierarchy using file-based storage.
|
The container with the TTreeNode instances for the control. |
|
|
Saves the tree nodes in Items to the specified stream. |
|
|
Saves the tree nodes in Items to the specified file. |
|
|
Loads tree nodes from the specified file. |
|
|
The number of ancestor nodes for the current tree node. |
|
|
Text displayed for the tree node. |
|
|
Implements a container for TTreeNode instances. |
Version 3.2 | Generated 2024-02-25 | Home |