[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Loads tree nodes from the specified file.
Source position: comctrls.pp line 3707
public procedure TCustomTreeView.LoadFromFile( |
const FileName: string |
); |
FileName |
|
File name with the tree node data loaded in the method. |
LoadFromFile is a method used to load the tree nodes from the specified file name into the Items property. FileName is a qualified file name which contains the textual representation for the tree node hierarchy generated using SaveToFile.
Each tree node in FileName 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 file.
Use SaveToFile to store the textual representation for tree nodes in Items to a given file name.
Use SaveToStream and LoadFromStream to read and write the node hierarchy using stream-based storage.
|
The container with the TTreeNode instances for the control. |
|
|
Saves the tree nodes in Items to the specified file. |
|
|
Saves the tree nodes in Items to the specified stream. |
|
|
Loads tree nodes from the specified stream. |
|
|
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 |