Graphics.measureText method
public Size measureText(char[] text, Font font, int maxWidth, TextFormat fmt)
public Size measureText(char[] text, Font font, TextFormat fmt)
public Size measureText(char[] text, Font font, int maxWidth)
public Size measureText(char[] text, Font font)
Describe Drawing-Graphics-measureText here.