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.SaveToFile(string) Method

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

#Declaration

Delphi
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