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

Color squares (rulers)

Start search Mail feedback Back to Description


rtHRule rtColor

add (rtContainer) Add (rtCollection) Add (rTextParagraph) Color (rtFontstyle) Color (rtHRule) RuleWidth setRGB

Code fragment from sample "Color squares (rulers)"; see full running samples in downloadable help.
Dim red%, green%, blue%

for red%=0 to 255 step 50
for green%=0 to 255 step 50
for blue%=0 to 255 step 50

set hrule = new rtHRule(ONE_CM)
hrule.RuleWidth =ONE_CM
set hrule.Color = New rtColor(0)
hrule.Color.setRGB red%, green%, blue%
ctxDump.add hrule
Next blue
Next green
Next red