none
Line spacing RRS feed

  • Question

  • Hi,

    How can we change the line spacing of the Font (Graphics in Paint event) ?!
    I know juste that there is Height but it is read only ! :/

    Help :(
    Friday, February 3, 2006 3:19 PM

All replies

  • When you create a font to draw with, you specify its height.

    TO draw multiple lines of text with different spacing than usual, you will have to break the text into lines yourself and place them on the screen with the spacing you desire.

    To get the height of the font (ie your minimum spacing) you can use the MeasureString method.

    Hope this helps.

    Saturday, February 4, 2006 12:46 AM