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"
Rich Text is a subset of the tags used to format HTML pages. It can be used to format the text of several User Language Dialog objects, in the #usage directive or in the description of library objects. Text is considered to be Rich Text if the first line contains a tag.
RTF stands for Rich Text Format and is a universal document file format and is easily read by many of the word-processing packages. It is particularly useful to those using a different word-processing package from those used on campus.
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"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With