Show: Delphi C++
Display Preferences

Vcl.ComCtrls.TCustomTreeView.LoadFromFile

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure LoadFromFile(const FileName: string); overload;
procedure LoadFromFile(const FileName: string; AEncoding: TEncoding); overload;

C++

void __fastcall LoadFromFile(const System::UnicodeString FileName)/* overload */;
void __fastcall LoadFromFile(const System::UnicodeString FileName, System::Sysutils::TEncoding* AEncoding)/* overload */;

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TCustomTreeView

Description

Reads the file specified in FileName and loads the data into the tree view.

Use the LoadFromFile method to retrieve tree view nodes from a file and add them to the tree view. FileName should reference a file that was saved using the SaveToFile method. Tree view files are text files that list the Text property of each node in a tree view, one node per line. Each node text value is preceded by spaces to indicate the depth of nesting.

You can specify an optional parameter, TEncoding, which defines the encoding of the loaded file. If no encoding is specified, the default system encoding is used.

Note: Tree view files contain only the text of the tree view nodes. They do not contain any data associated with the nodes.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance