i want width of text in displydimension by c#

I used  GetTextFormat() for finding height of text but not able to find width of text

SolidworksApi/macros