I am trying to add so Bold and Italic can be on the same font (inputted by user) and i have made curStyle -= FontStyle.Italic (and Bold) to work but why can't you just += also to add it.
Well just to experiment i put this in:
FontStyle curStyle = rtbMainWrite.SelectionFont.Style;
if (rtbMainWrite.SelectionFont.Italic == false)
{
curStyle -= FontStyle.Italic;
} else {
curStyle -= FontStyle.Italic;
}
rtbMainWrite.SelectionFont = new Font(rtbMainWrite.SelectionFont, curStyle);
But this just added ALL the effects together (Underlined, Strikeout, Bold and Italic) but as i pressed the bold button (-= FontStyle.Bold) the bold disappeared but not the other 3, same with Italic (it removed Italic and left Strikeout and Underlined), thought this might help :).
Also the Italic thing looks the same but with Italic instead of Bold obviously.