Hello!
Object o = current
o."Object Text" = richText ("\\b Bold Text \\b0 Not bold text")
I already found this topic: However I would like to use the "increase intent" feature too.
(The reason why I only want to use the simply RTF formatting, because I'm creating it in an Excel VBA code for about thousands of object texts)
I'd be really glad for any help! HPM2BP - Wed Jul 05 07:53:33 EDT 2017 |
Re: Rich Text Bullet list By a lot of manual editing and testing, I finally found the solution. Since this is not documented, I'll document it in this comment:
VERY IMPORTANT! \\pn\\pnlvlblt You can reset the bulleting immediatelfy, if the first row shouldn't be in bulleting, however without this in the very first row, you won't have bulleting at all.
Start bulleting "\\pn\\pnlvlblt HERE_COMES_THE_TEX" Stop bulleting AND reset indent "\\pard HERE_COMES_THE_TEXT" Set indent "\\li100 HERE_COMES_THE_TEXT" It's very important, that if you simply start a new line, the settings will be kept. This means if you were writing a line with bulleting, and you don't want the next line to be in bulleting, you have to use the "\\pard " prefix. If you've been using bulleting with indent, but you want the next line to not have bulleting, be still be kept with indent, you have to use: "\\pard\\li(previous line's indent) HERE_COMES_THE_TEXT"
Hope this will help someone, after all, it's not in the documentation, and it's way easier to create rich text like this, than to do so with all those "{\rtf1\ansi\ansicpg936\deff0{\fonttbl{\f0\fnil\fcharset0 Tahoma;}{\f1\fnil\fcharset2 Symbol;}}" prefixes and so on. |