PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
bounding rect of text https://forum.pdfsharp.net/viewtopic.php?f=2&t=3513 |
Page 1 of 1 |
Author: | met [ Thu Dec 08, 2016 3:13 pm ] |
Post subject: | bounding rect of text |
hello, sorry for my bad english How can i get a bounding rectangle of a drawing text? Code: gfx.DrawString("test", New XFont("Arial", textSize, XFontStyle.Regular), XBrushes.Black, x, y)
dim rect as new xRect(x,y, ???textwidth???, ???textheight???) |
Author: | Thomas Hoevel [ Thu Dec 08, 2016 3:15 pm ] |
Post subject: | Re: bounding rect of text |
Hi! Use gfx.MeasureString(...). |
Author: | met [ Thu Dec 08, 2016 3:27 pm ] |
Post subject: | Re: bounding rect of text |
oh... so easy thanks |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |