public void SetSelectionFont(Font font)
 {
     if (control.InvokeRequired)
     {
         SetSelectionFontDelegate del = new SetSelectionFontDelegate(SetSelectionFont);
         control.Invoke(del, new object[] { font });
     }
     else control.SelectionFont = font;
 }
 public void SetSelectionFont(Font font)
 {
     if (control.InvokeRequired)
     {
         SetSelectionFontDelegate del = new SetSelectionFontDelegate(SetSelectionFont);
         control.Invoke(del, new object[] { font });
     }
     else
     {
         control.SelectionFont = font;
     }
 }