Function TParagraph.SaveToString(OnlyChildren:Boolean; Format:string) : string
Unit: WPRTEDefs
Class: WPRTEDefs.TParagraph
Parameters
-
OnlyChildren:Boolean Format:string
Returns
The type of the result value is string.
Description
Saves the contents to a string. Also seeExample: copy a sub table to a different ro in thze same parent table:
aString := WPRichText1.ActiveParagraph.ParentTable.SaveToString(false, 'WPT');
WPRichText1.ActiveParagraph :=
WPRichText1.ActiveParagraph.ParentTable.DeleteParagraph;
WPRichText1.TableRow.RowNext.ColFirst.LoadFromString(aString, [wploadpar_AsChildrenPar]);
WPRichText1.ReformatAll(false, true);