S
SamSpade
Given a RichTextBox I need to be able to determine the smallest rectangle
that bounds the text. In other words the size of the smallest paper it would
fit on.
For example, if the box contains text only I need to know the width of the
longest line as displayed and the height of all the text.
If it contains one image I need to know the width and height of the image.
Is that possible to determine?
Thanks
that bounds the text. In other words the size of the smallest paper it would
fit on.
For example, if the box contains text only I need to know the width of the
longest line as displayed and the height of all the text.
If it contains one image I need to know the width and height of the image.
Is that possible to determine?
Thanks