Jag svarar mig själv då jag kom på lösningen:
private void makeFormat(string format)
{
try
{
if (!(rTBDoc.SelectionFont == null))
{
System.Drawing.Font currentFont = rTBDoc.SelectionFont;
System.Drawing.FontStyle newFontStyle;
newFontStyle = rTBDoc.SelectionFont.Style ^
FontStyle.Regular;
switch (format)
{
case "Bold":
newFontStyle = rTBDoc.SelectionFont.Style ^
FontStyle.Bold;
break;
case "Italic":
newFontStyle = rTBDoc.SelectionFont.Style ^
FontStyle.Italic;
break;
case "Underline":
newFontStyle = rTBDoc.SelectionFont.Style ^
FontStyle.Underline;
break;
case "Strikethroug":
newFontStyle = rTBDoc.SelectionFont.Style ^
FontStyle.Strikeout;
break;
}
rTBDoc.SelectionFont = new Font(currentFont.FontFamily,
currentFont.Size, newFontStyle);
}
}
catch (Exception fel)
{
MessageBox.Show("Error " + fel.Message.ToString(), "MusicTranspose 2.0 - makeFormat " + format);
}
Jag lade också till CheckOnClick i tollStripen så blev det riktigt bra. :L