wpf - multipule text font size for font in one text box -


i have following code

textbox1.text = "two of peak human experiences "     textbox1.text = textbox1.text & "good food , classical music."      textbox1.fontsize = "16" 

it shows 2 lines in same text box . how change font size each line of text , have them appear in same textbox?

use richtextbox instead.

richtextbox1.selectionfont = new font("arial", 12, fontstyle.bold); richtextbox1.appendtext("two of peak human experiences are"); richtextbox1.selectionfont = new font("tahoma", 16, fontstyle.bold); richtextbox1.appendtext("good food , classical music"); 

Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -