Hello,
Do you know how I can change font size using StringBuilder?
and how can I add a text from a textBox to it? (instead of "test" in the example above)Code:StringBuilder str = new StringBuilder();
str.Append(@"&""Arial,Regular""test");
Printable View
Hello,
Do you know how I can change font size using StringBuilder?
and how can I add a text from a textBox to it? (instead of "test" in the example above)Code:StringBuilder str = new StringBuilder();
str.Append(@"&""Arial,Regular""test");
You cannot change font size. The font size is a property of the display element. A stringBuilder only holds text, no formatting.
str.Append( textBox1.Text ); => will append the text of TextBox1 to your string.