Skip to main content

TdxCustomTreeView.SaveToFile(string) Method

Saves node captions and positions in the Tree View control to the specified plain text file.

Declaration

procedure SaveToFile(const AFileName: string); overload;

Parameters

Name Type Description
AFileName string

A target file name.

Remarks

The SaveToFile procedure uses the system encoding to save node captions and positions. If you want to save information in a different encoding, call the SaveToFile(System.String,System.SysUtils.TEncoding) procedure instead.

Note

The SaveToFile procedure is intended to be backward compatible with the TTreeView control. To save all Tree View settings to the specified file, call the SaveDataToFile procedure.

You can call a LoadFromFile procedure to load node captions and positions from a stream in plain text format. The LoadDataFromFile procedure does not support streams created by a SaveToFile procedure call.

See Also