Vcl.ComCtrls.TCustomTreeView.LoadFromStream
Delphi
procedure LoadFromStream(Stream: TStream); overload;
procedure LoadFromStream(Stream: TStream; AEncoding: TEncoding); overload;
C++
void __fastcall LoadFromStream(System::Classes::TStream* Stream)/* overload */;
void __fastcall LoadFromStream(System::Classes::TStream* Stream, System::Sysutils::TEncoding* AEncoding)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TCustomTreeView |
Description
Reads tree view data from a stream and stores the contents in the tree view.
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.
In addition, you can specify the TEncoding parameters, which define the encoding of the stream loaded. If no encoding is specified, the default system encoding is used.
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.