ImageEn, unit iexLayers

TIETextLayer.LoadTextFromFile

TIETextLayer.LoadTextFromFile


Declaration

procedure LoadTextFromFile(const Filename: string);


Description

Loads the content of the text layer from either a TXT, RTF or Word file.

Note:
Word files can only be loaded if Microsoft Word is installed
When loading a RTF or Word file, EnableFormatting will be set to true
Exception is raised on load error


Example

// Load a text file as content
if dlgOpenTextFile.Execute then
  TIETextLayer( ImageEnView1.CurrentLayer ).LoadTextFromFile( dlgOpenTextFile.Filename );
ImageEnView1.Update();


See Also

Text
RichText