Skip to main content

TdxCustomTreeView.LoadFromStream(TStream,TEncoding) Method

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

Declaration

procedure LoadFromStream(AStream: TStream; AEncoding: TEncoding); overload;

Parameters

Name Type Description
AStream TStream

A source stream.

AEncoding TEncoding

The specified stream’s encoding.

Remarks

A LoadFromStream procedure call raises the EdxTreeViewException exception if the specified encoding is different from the file’s encoding or 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