Procedure TParagraph.SetAllText(text:WideString; aindex:Integer)
Unit: WPRTEDefs
Class: WPRTEDefs.TParagraph
Parameters
-
text:WideString aindex:Integer
Description
This procedure sets the text of a paragraph. If the string contains \r\n pairs (charcode 13 and charcode 10) a new paragraph will be created and appended as child. Single #13 codes will be ignored, single #10 codes create a line break. This procedure is useful to store an ANSI string into one paragraph. It is used by the SubParargraph demo.ReformatAll must be called after the modification.