Contents - Index - Previous - Next


LoadFromFile method




Declaration
function LoadFromFile(const AFileName: TFileName): Boolean;

Description

Opens a file from disk for editing.

The method is synchronous. While a document is loading, the Busy property is set to True. When the document has finished loading, the OnLoadFromFile event is fired and the Busy property is set to False. You should wait until the document is done loading before attempting to manipulate the document or get its current properties.

Returns True on success. Returns False on failure.