On Sat, 26 Apr 2008 18:29:12 -0700, Sin Jeong-hun <ty*******@gmai l.com>
wrote:
Please just let me know if what I'm trying to do cannot be achieved
with some flags. Then I can start writing manual line breaking codes.
For what it's worth, it's very difficult with many esoteric operations for
a person to say for sure that you can't do it easily in .NET. .NET is
incredibly broad in many areas. If a person knows for sure that there
_is_ a way to do it, that's one thing. But to prove that you can't is
much harder.
In other words, you may not find anyone who is confident that their
knowledge is encyclopedic enough about .NET to state for sure that there's
no option that will break a line within a word rather than between words.
And this may be true even if it turns out that you actually can't.
I'm actually surprised that neither of the options I mentioned address the
issue. Just as I can't say for sure that what you want isn't in .NET, I
also can't say for sure that you have successfully applied the options I
mentioned in a way that would perform as you want. It's possible that
they only work in that specific way when used in combination with other
aspects of text formatting and that you haven't tried that particular
combination yet.
But, the fact is that Graphics.DrawSt ring() and TextRenderer.Dr awText()
are the two primary ways to draw text in .NET. If you're sure you've
explored all of the viable combinations of settings and overloads for each
of those methods and none do what you want, I suppose you might as well
start working on a more explicit implementation instead.
Pete