Navigation:  Interfaces (Technical API Reference) > General: WPDllInt + IWPMemo/IWPEditor > IWPMemo / IWPEditor > Methods >

LoadFromString Method

Previous pageReturn to chapter overviewNext page

Declaration

bool LoadFromString([In] string Data, [In] bool Insert, [In] string FormatStr);

Description

Load data into this editor.

 

Parameters

Data  - The text to be "loaded".

 

Insert - true to insert the file at the cursor position, otherwise the complete text is replaced.

 

FormatStr - Select the reader and set options. See FormatStrings.

Tip: In many cases using LoadFromVar will be more efficient:

 editorToPreview.Memo.LoadFromVar(

    editorToBePreviewed.Memo.SaveToVar(false"RTF"), 

    false"RTF");

Category

Load and Save