DrawString with character wrapping
Posted
by Roy
on Stack Overflow
See other posts from Stack Overflow
or by Roy
Published on 2010-06-06T17:12:15Z
Indexed on
2010/06/06
19:42 UTC
Read the original article
Hit count: 376
Hi all,
I'm creating a fatal error dialog for a Windows Mobile Application using C#. The problem is when I try to draw the stacktrace using DrawString
, half of my stacktrace is getting clipped off because DrawString
uses word wrapping instead of character wrapping.
For those who don't understand the explanation:
When i draw the stacktrace, it comes out as this:
at
company.application.name.space.Funct
at
company.application.name.Function(St
at
etc. etc.
And i want it to print like this:
at
company.application.name.space.Funct
ion(String sometext, Int32 somenumbe
r)
at
company.application.name.Function(St
ring sometext, Int32 somenumber, Int
32 anothernumber)
at
etc. etc.
Is this possible in Csharp?
© Stack Overflow or respective owner