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.LoadFromFile(string,TEncoding) Method

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

#Declaration

Delphi
procedure LoadFromFile(const AFileName: string; AEncoding: TEncoding); overload;

#Parameters

Name Type Description
AFileName string

A source file name.

AEncoding TEncoding

The specified file’s encoding.

#Remarks

A LoadFromFile 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 SaveToFile procedure to save node captions and positions to a plain text file. The LoadFromFile procedure does not support files created by a SaveDataToFile procedure call.

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

See Also