Function TParagraph.Append(obj:TWPTextObj; CharAttrIndex:Cardinal) : TParagraph

Unit: WPRTEDefs
Class: WPRTEDefs.TParagraph

Parameters

Returns

The type of the result value is TParagraph.

Description

Appends text to the paragraph. Please also see .
Since WPTools 9 Append are, like SetText(), functions which return a refence to the paragraph to make creation and assignments with fluid sytax possible.
var norm, bold : Integer; begin WPRichText1.AttrHelper.Clear; WPRichText1.AttrHelper.SetFontName('Tahoma'); norm := WPRichText1.AttrHelper.CharAttr;
WPRichText1.AttrHelper.Clear; WPRichText1.AttrHelper.SetFontName('Tahoma'); WPRichText1.AttrHelper.SetCharStyles(WPSTY_BOLD,WPSTY_BOLD); bold := WPRichText1.AttrHelper.CharAttr;
WPRichText1.ActiveParagraph.Append('Julian ',norm).Append('Ziersch ',bold); end;

Overloaded Methods

Function TParagraph.Append(s:string; aindex:Integer) : TParagraphFunction TParagraph.Append(PairObjType:TWPTextObjType; IsClosing:Boolean; ObjName:string; ObjSource:string; CharAttrIndex:Cardinal) : TParagraphFunction TParagraph.Append(SourcePar:TParagraph) : TParagraphFunction TParagraph.Append(s:string) : TParagraphFunction TParagraph.Append(SingleObjType:TWPTextObjType; ObjName:string; CharAttrIndex:Cardinal) : TParagraphFunction TParagraph.Append(TextFieldType:TWPTextFieldType; CharAttrIndex:Cardinal) : TParagraph