Text Height

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi there, ive got a page which im printing but in order to centre some text i need to know the width and height of the text. I have done this before a long time ago and i seem to have totally forgotten how to do it. Hopefully someone can help me out

Regard

JP
 
* "=?Utf-8?B?SmFtZXMgUHJvY3Rvcg==?= said:
Hi there, ive got a page which im printing but in order to centre some
text i need to know the width and height of the text. I have done this
before a long time ago and i seem to have totally forgotten how to do
it. Hopefully someone can help me out.

In the 'PrintPage' event, you can use 'e.Graphics.MeasureString' to do
that.
 
Back
Top