SetText Method

[Top]  [Chapter]  [Previous]  [Next]

Applies to

IWPParInterface                                                workswithseltext

Declaration

procedure SetText(const NewText: WideString; CharAttr: Integer);

Description

Assigns the text of a paragraph

Parameters

Text

New unicode text for the paragraph

CharAttr

CharAttr is the index of the character attribute record to be used for the inserted data.

Special values:

0: use the attribute of the preceding text or the current attribute in case the paragraph is empty.

-1: use the attribute of the preceding text or the paragraph default attribute if at first position in paragraph.

-2: use current writing mode (CurrAttr).

-3: use the document default attribute

-4: don't assign an attribute (CharAttr=0)

-5: use the paragraphs default char attributes

 

 


[idh_iwpparinterface_settext.htm]    Copyright © 2007 by WPCubed GmbH