getTextExtent

?

getTextExtent

Returns a Point2 value containing the size of the string in pixels if it was displayed in a command panel.

See also

String Values