문제

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