T
Tim Mulholland
I am trying to parse a string of RTF pulled from the RTF property of a
textbox, going through it character by character
<example>
string s = textBox1.Rtf;
for (int iii = 0; iii < s.Length; iii++)
{
char c = s[iii];
DoSomething(c);
}
however, the RTF code contains a ton of backslash characters, and this
is causing them to be escaped when i'm going through each character. for
example... the RTF code starts off as "{\\rtf..."} and when i go through
it, i get the characters '{', '\', 'r' and so on, so the \\ is escaped.
How can i turn this off?
I know for a literal, i could use the @ symbol, but that seems to have
no effect here.
Thanks in advance!
Tim
textbox, going through it character by character
<example>
string s = textBox1.Rtf;
for (int iii = 0; iii < s.Length; iii++)
{
char c = s[iii];
DoSomething(c);
}
however, the RTF code contains a ton of backslash characters, and this
is causing them to be escaped when i'm going through each character. for
example... the RTF code starts off as "{\\rtf..."} and when i go through
it, i get the characters '{', '\', 'r' and so on, so the \\ is escaped.
How can i turn this off?
I know for a literal, i could use the @ symbol, but that seems to have
no effect here.
Thanks in advance!
Tim