What means TEXTPARAGRAPH?

Hi,

in an agent I use NotesRichTextNavigator and NotesRichTextRange.

For NotesRichTextNavigator I can use RTELEM_TYPE_TEXTPARAGRAPH e.g.

Call rtnav.FindFirstElement(RTELEM_TYPE_TEXTPARAGRAPH)

Loop While rtnav.FindNextElement(RTELEM_TYPE_TEXTPARAGRAPH)

=> but what is a textparagraph?

=> same question concerning RTELEM_TYPE_TEXTRUN… which is the difference between RTELEM_TYPE_TEXTPARAGRAPH and

RTELEM_TYPE_TEXTRUN ?

thank you in advance for your assistance

Birgit

Subject: what means TEXTPARAGRAPH?

A paragraph is just what it normally means – text that is formatted as a block and ends with a new line. I will end this paragraph by pressing the Return key at the end of this sentence.Not every new line ends a paragraph, though.
Here I pressed Shift-Return to get new lines
inside a paragraph.
You can probably see the effect better in a
Notes client.

A run of text is some text within a paragraph that has some style applied to it. For example, this bold text is a run. The plain text before and after it might be considered as runs too.

Subject: RE: what means TEXTPARAGRAPH?

Rod, thank you very much !

Do you know how to get a new line inside a paragraph with Lotus Script?

I tried it in such a way:

Call bodyRange.FindAndReplace(“[”, Chr$(13), RT_REPL_ALL)

but the instruction (…FindNextElement(RTELEM_TYPE_TEXTPARAGRAPH)) ignores the new lines, which I created in such a way.

The other one i tried was the methods FindFirstString and FindNextString from the NotesRichTextNavigator class. That does not seem to function correctly:

To find the first string (for example “[”) is no problem, but to to find the next string is not possible. The instruction (…FindNextString…) finds nothing more, although it has still many of the looked string.

hth

Birgit

Subject: RE: what means TEXTPARAGRAPH?

A new line does not make a new paragraph. Chr$(13) is like typing Shift-Return. You cannot make a new paragraph using FindAndReplace. You can append a new paragraph using AddNewLine(1, True).