rtLib — Notes Rich Text Management Library Documentation of rtLib — Notes Rich Text Management Library Download rtLib — Notes Rich Text Management Library FAQ of rtLib — Notes Rich Text Management Library Purchase rtLib — Notes Rich Text Management Library Feedback about rtLib — Notes Rich Text Management Library

Cookbook

Process sections

Start search Mail feedback Back to Description


rtSection rtColor

addNewLine (rtContainer) addNewLine (rTextParagraph) appendText (rtContainer) appendText (rTextParagraph) Borders Color (rtFontstyle) Color (rtSection) getRichTextItem getText hasMoreElements NextElement sections setRGB Title

Code fragment from sample "Process sections"; see full running samples in downloadable help.
Dim obj, sect as rtSection

call ctxDump.getRichTextItem(doc,"Body")
Set enum = ctxDump.Sections
Do While enum.hasMoreElements
Set obj =enum.nextelement
obj.Title= obj.Title &" - modified on " &Date' for section Text attribute refers to Title
Set obj.Color = new rtColor (0)
obj.Color.setRGB cint (10000*rnd) mod 255, cint (10000*rnd) mod 255, cint (10000*rnd) mod 255
obj.Borders = clng(Rnd*Timer) Mod 6 ' random look for choices look in help for Borders / BARREC_BORDER_TWOLINE
obj.Content.addNewLine 2
obj.appendText obj.getText
Loop