Skip to main content

TdxCustomTreeView.LoadFromFile(string) Method

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

Declaration

procedure LoadFromFile(const AFileName: string); overload;

Parameters

Name Type Description
AFileName string

The path to the source file.

Remarks

The LoadFromFile procedure uses the system encoding to load node captions and positions. If the specified file’s encoding differs from the system encoding, call the LoadFromFile(System.String,System.SysUtils.TEncoding) procedure instead.

A LoadFromFile procedure call raises an exception if 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