Get String Length

I'm trying to get the string length from a text sketch but it returns 0 from GetTextFormat. All the other parameters are valid.

http://help.solidworks.com/2011/English/api/sldworksapi/SolidWorks.Interop.sldworks~SolidWorks.Interop.sldworks.ITextFormat_members.html

I guess it's a bug since I definitely have text in the sketch.

Is there any other way to measure the length? (I need to know it for autosizing purposes)

SolidworksApi macros