WindowGetTextExtent window string Gets the dimensions of the string as it would be drawn on the window with the currently selected font. Parameters string: String whose extent is to be measured.