PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
Migradoc Measure String https://forum.pdfsharp.net/viewtopic.php?f=2&t=1196 |
Page 1 of 1 |
Author: | foxwoodDesign [ Thu May 27, 2010 10:33 am ] |
Post subject: | Migradoc Measure String |
Hi, I am using Mogradoc for writing text onto the page but need to know if a line of text has dropped onto two lines. I notice that PDFsharp has a MeasureString option, but cannot seem to find an equivalent for use in Migradoc. Using PDFSharp at this point is not really an option. Please can you help? Regards |
Author: | foxwoodDesign [ Thu May 27, 2010 12:42 pm ] |
Post subject: | Re: Migradoc Measure String |
If it makes it easier, it is possible to get the height of a border, or paragraph? Code: paragraph = bulletTextFrame.AddParagraph ft = paragraph.AddFormattedText("My Text Here") setParaFont(paragraph, pdfContent.styleID, pdfStyleList) paragraph.Format.Borders.Color = Colors.Gold The border gets drawn, so I assume there must be a way to return the height of the border? I just need to know if the "My Text Here" has gone onto two lines, so either the height of that paragraph, or the position of the next paragraph. Any ideas? Regards |
Author: | Thomas Hoevel [ Thu May 27, 2010 1:14 pm ] |
Post subject: | Re: Migradoc Measure String |
foxwoodDesign wrote: I just need to know if the "My Text Here" has gone onto two lines, so either the height of that paragraph, or the position of the next paragraph. Any ideas? That information is currently internal. But since it's Open Source ... viewtopic.php?p=2478#p2478 viewtopic.php?p=1960#p1960 |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |