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
Post a Comment