System.Drawing question RRS feed

  • Question

  • User-1370353080 posted

    I create a rectangle in which I fit a text.  So after deciding the font, size, when I write text to the graphic object I specify a rectangle with fixed height and width.  From GUI, when I enter a paragraph, only few portion of text would fit within the rectangle in graphics.  I understand that as the height of rectangle is deciding factor.

    Is there a way find out how many characters (length of string) fit in that rectangle? Because I am thinking of splitting the text and displaying the remaining string in second rectangle.  But not sure on how to find out number of characters in first rectangle.

    Monday, November 23, 2009 9:27 AM

All replies