Computes width of the text in pixels, based on given parent control. If no parent control is set, document.body is used.
Source text.
Optional
Parent control. The default is body element.
getTextWidth
Computes width of the text in pixels, based on given parent control. If no parent control is set, document.body is used.