Is it possible to text wrap in a rectangle with the SDK?

Hi All,


I was wondering if there were any methods in the SDK that could text wrap a string in a boundary/rectangle? I am developing in c# and in the past I've used the Graphics object to measure the width of the string but this is has not always give accurate results and thought if anyone had come across a better solution?


I've tried the DrawTextRect method but this seems to only display text inside the specified rectangle and any text outside does not wrap and gets cut off.



Thanks in advanced