Skip to main content
A newer version of this page is available. .

TdxCustomTreeView.LoadFromStream(TStream) Method

Loads node captions and positions in the Tree View control from the specified stream in plain text format.

Declaration

procedure LoadFromStream(AStream: TStream); overload;

Parameters

Name Type Description
AStream TStream

A specific stream.

Remarks

The LoadFromStream procedure uses the system encoding to load node captions and positions. If the specified stream’s encoding differs from the system encoding, call the LoadFromStream(System.Classes.TStream,System.SysUtils.TEncoding) procedure instead.

A LoadFromStream procedure call raises the EdxTreeViewException exception if the loaded information is not valid.

Note

You can call a SaveToStream procedure to save node captions and positions to a stream in plain text format. The LoadFromStream procedure does not support streams created by a SaveDataToStream procedure call.

The LoadFromStream procedure raises the OnAddition event for each loaded node.

See Also