LoadFromVar Method |
[Top] [Chapter] [Previous] [Next] |
Loads the data from a variant variable Applies to Declaration bool LoadFromVar([In, MarshalAs(UnmanagedType.Struct)] object Data, [In] bool Insert, [In] string FormatStr); Description This method loads or inserts the contents of a variant - usually a variant array of bytes. You can use this method to load the data saved by SaveToVar.
Note: variant array of bytes work much more efficient to store RTF data than strings.
C# Example - copy text from one editor to another using SaveToVar/LoadFromVar
object currtext = wpdllInt1.Memo.SaveToVar(false, "WPT"); wpdllInt2.Memo.LoadFromVar(currtext, false, "AUTO");
Parameters
Data - The text to be loaded or inserted, variant or "object". Insert - true to insert the text at the cursor position, otherwise the complete text is replaced. FormatStr - Select the reader and set options. See FormatStrings. Category |