Viewable lines in a rich text box?
Does anyone have an idea how to determine the number of lines that are
viewable on a rich text box. The Rich Text Box may have 40 lines of stuff
in it, but only 15 are able to be displayed at any one time because of its
size. But how do I determine via code that only 15 lines are viewable?
I had thought to get the client area (in particular the client height) and
then find the size of the font that was being used, but that doesn't quite
work. It appears that I am overlooking the space that naturally occurs
between lines, so how do I account for that?
Thanks in advance for the help.
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center