Vcl.ComCtrls.TCustomTreeView.SaveToStream

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SaveToStream(Stream: TStream); overload;
procedure SaveToStream(Stream: TStream; AEncoding: TEncoding); overload;

C++

void __fastcall SaveToStream(System::Classes::TStream* Stream)/* overload */;
void __fastcall SaveToStream(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

Writes the data in the tree view to the stream passed as the Stream parameter.

Use the SaveToStream method to stream out the nodes in a tree view. It can be streamed back in to another tree view object using the LoadFromStream method.

You can specify a TEncoding parameter, which defines the encoding of the resulting stream. 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.

See Also