R
rpatel4
I'm drawing text to the screen, and I need to place an image at the end
of the text.
The text is multiline.
Here's how I'm drawing the text
e.Graphics.DrawString(_text, this._font, textBrush, textRectangle);
So On screen it appears like
--------------------------------------
| There is some text |
| on this screen. It |
| needs an image |
| right here *** |
----------------------------------
where *** is an image (whose height is the same as the line height)
(pardon the lack of formatting)
I'm open to putting the text in some kind of container instead of
drawing it outright to the screen.
The question is, what containers/etc can I used to get the image drawn
directly at the end
of the string.
And if theres no containers, is there a way to measure the width of the
last line of text?
of the text.
The text is multiline.
Here's how I'm drawing the text
e.Graphics.DrawString(_text, this._font, textBrush, textRectangle);
So On screen it appears like
--------------------------------------
| There is some text |
| on this screen. It |
| needs an image |
| right here *** |
----------------------------------
where *** is an image (whose height is the same as the line height)
(pardon the lack of formatting)
I'm open to putting the text in some kind of container instead of
drawing it outright to the screen.
The question is, what containers/etc can I used to get the image drawn
directly at the end
of the string.
And if theres no containers, is there a way to measure the width of the
last line of text?