Different styles for the same label? The class
Label
won't help you; you need a different class to do such things.
One of these components can help you:
WPF HTML Supported TextBlock[
^],
A Professional HTML Renderer You Will Use[
^].
Both works offer components based on HTML rendering, one for WPF, another for Forms. (Always tag UI library you want to use, don't force people in doing double work.)
If you use the above components, new line will be
<br/>
. If you keep using plain-text labels, new line in general case is not '\n' or '\r' or combination. You need to use
portable way. Use
System.Environment.NewLine
.
—SA