Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxCustomTreeView.LoadFromStream(TStream) Method

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

#Declaration

Delphi
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