LoadFromString method

Applies to
TParagraph

Overloaded Variants
Function LoadFromString(const aString: string; Format: string = 'AUTO'; FilenameAndPath: string = ''; options: TWPParLoadOptions = []): Boolean;
Function LoadFromString(const aString: string; options: TWPParLoadOptions = []): Boolean;

Declaration
function LoadFromString(const aString: string; Format: string = 'AUTO'; FilenameAndPath: string = ''; options: TWPParLoadOptions = []): Boolean;

Description
Works like LoadFromStream but loads the text from a string. If you only need to initialize not formatted text use SetText.
          WPRichText1.ActiveParagraph.LoadFromString(
      '{\rtf1 Here is some \b bold \b0 text}', [wploadpar_UseWritingAttr] );
    WPRichText1.DelayedReformat;

Category
Load and Save

Declaration
function LoadFromString(const aString: string; options: TWPParLoadOptions = []): Boolean;

Category
Load and Save


Copyright (C) by WPCUBED GmbH - Munich
http://www.wpcubed.com