Dynamically resize the TextArea control to fit the text

Is there a way to dynamically resize the height of a TextArea control to fit the text?

The text in the TextArea can be between 1 and 10 lines, and I want to be able to place other controls just below the TextArea.

create a temp graphics object, set the font attributes to match your textarea
then use STRINGWIDTH and STRINGHEIGHT from the graphics object to use as the size parameters for your TextArea

Thank you for pointing me in the right direction. I ended up using the size returned from Graphics.TextBlockSize.