P
Palli
Hi
Im trying to create image from RichTextBox text but I run
into small problem? The problem is when I try to select
current font or color from the text in the rtb. The
returned font and color are always the font and color at
the begin of the text. This is my code
for (int iCurChar = lastChar; iCurChar <
richTextBox1.Text.Length; iCurChar++)
{
richTextBox1.Select(iCurChar,1);
char CurrChar = richTextBox1.Text[iCurChar];
Color CurrColor = richTextBox1.SelectionColor;
Font CurrFont = richTextBox1.SelectionFont;
int iFontHeight = CurrFont.Height;
....
Does anybody know what my problem is?
Thanks
Palli
Im trying to create image from RichTextBox text but I run
into small problem? The problem is when I try to select
current font or color from the text in the rtb. The
returned font and color are always the font and color at
the begin of the text. This is my code
for (int iCurChar = lastChar; iCurChar <
richTextBox1.Text.Length; iCurChar++)
{
richTextBox1.Select(iCurChar,1);
char CurrChar = richTextBox1.Text[iCurChar];
Color CurrColor = richTextBox1.SelectionColor;
Font CurrFont = richTextBox1.SelectionFont;
int iFontHeight = CurrFont.Height;
....
Does anybody know what my problem is?
Thanks
Palli