I would like to hide part of the text in my RichTextBox. I know that \v is the start of a hiding section. But how do I unhide ? For example if I want to hide the word "big" in the string "hello big world" so that "hello world" is visible:


text              : "hello big world"
RTF so far        : "hello \v big world"
result            : "hello "
wanted result  -> : "hello  world"
doesn't work      : "hello \v big\v  world"


Is there a way ?

有帮助吗?

解决方案

Solution by Alex K. is probably better but I'm adding this solution I just found because it also works. \plain resets the text style back to defaults:

hello \v big\plain  world

Yet another solution (actually used by the RichTextBoxes): \v0 disables just the hiding

hello \v big\v0  world

其他提示

You need to use curly braces to group the code;

"hello {\v big} world"
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top