G
Guest
With .Net 1.1 I developed a text editing control using:
Graphics.MeasureCharacterRanges;
Graphics.MeasureString
It worked but was not perfect as the text "walked" as new characters were
added and finding the exact position of a character (especially spaces at the
end of a line) was not always precise.
I understood that TextRenderer that is available in .Net 2.0 would alleviate
these problems as it used GDI rather than GDI+, providing a more precise
method MeasureText. My question is, how can I find a character's exact
position using TextRenderer? It doesn't appear to have the equivalent of
Graphics.MeasureCharacterRanges.
Thank you in advance.
Piers
Graphics.MeasureCharacterRanges;
Graphics.MeasureString
It worked but was not perfect as the text "walked" as new characters were
added and finding the exact position of a character (especially spaces at the
end of a line) was not always precise.
I understood that TextRenderer that is available in .Net 2.0 would alleviate
these problems as it used GDI rather than GDI+, providing a more precise
method MeasureText. My question is, how can I find a character's exact
position using TextRenderer? It doesn't appear to have the equivalent of
Graphics.MeasureCharacterRanges.
Thank you in advance.
Piers