[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Saves the tree nodes in Items to the specified stream.
Source position: comctrls.pp line 3710
public procedure TCustomTreeView.SaveToStream( |
Stream: TStream |
); |
Stream |
|
TStream instance where the tree node data is stored. |
SaveToStream is a method used to store a textual representation for the tree nodes in Items to the specified Stream. Stream is the TStream instance where the tree node data is stored.
SaveToStream visits each of the TTreeNode instances in Items and writes the tree node information to the stream. Each node is represented Each tree node is represented by leading Tab (#9) characters to denote the Level for the tree node, followed by the Text for the node and an end-of-line sequence (#13#10).
Remark: | SaveToStream does not change the position in Stream prior to writing 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 LoadFromStream to load and create tree nodes in Items from stream-based storage.
Use LoadFromFile and SaveToFile to read and write the node hierarchy using file-based storage.
|
The container with the TTreeNode instances for the control. |
|
|
Loads tree nodes from the specified stream. |
|
|
Loads tree nodes from the specified file. |
|
|
Saves the tree nodes in Items to 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 |