Using NotesRichTextStyle Class you can change of color or format of any text
within RichText Item Background. Code is an example for Mail
Dim sess as New NotesSession
Dim memo as New Notesdocument(sess.CurrentDatabase)
Dim rt as New NotesRichTextItem(memo,"Body")
Dim style as NotesRichTextStyle
Call rt.AppendText("This is a test mail to test RichText style Class")
'Here is code which changes code to RED/BOLD/UNDERLINE
Call rt.AppendText(" D A N G E R")
'Above code will render DANGER in RED BOLD UNDERLINE Format
'If you are trying add text after this make sure you clear properties set for
style ,other wise it render text after in RED color.
By submitting your email address, you agree to receive emails regarding relevant topic offers from TechTarget and its partners. You can withdraw your consent at any time. Contact TechTarget at 275 Grove Street, Newton, MA.