PDFsharp & MigraDoc Foundation
http://forum.pdfsharp.com/

help text on more then one line
http://forum.pdfsharp.com/viewtopic.php?f=2&t=542
Page 1 of 1

Author:  ridaria [ Tue Nov 18, 2008 3:37 pm ]
Post subject:  help text on more then one line

HAi, i'm Using PdfSharp.

All is OK, but now i have a string quite long, if i use:

gfx.DrawString("my string quite long an other text and other sjaoa kakaki ajajajshajs aujaujsuasbna sausuausa s asuaus asb asuasuausa s asuasuasuqa sansa s auysausuausausuauusausuasuausuausuasuausuas au8suausausuasuaus ausuausuausausua .......", pFont, Brushes.Black, 3, 5)
it appear on a only line anthe it isn't readable because the rest is out of the page.

I ask: There is a mode to render the long string on two or more lines?????


Thanks.

Riccardo

Author:  Thomas Hoevel [ Wed Nov 19, 2008 8:47 am ]
Post subject: 

Hi!
Look at the TextLayout sample for line-wrapping text.
Look at the MigraDoc samples for line-wrapping and page-wrapping text.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/