Example #1
0
 public StyleWatcher(RichTextControl rtf, params ToolStripItem[] tsis)
 {
     foreach (ToolStripItem tsi in tsis)
     {
         Items.Add(tsi.Tag, tsi);
     }
     RTF = rtf;
     rtf.SelectionChanged += eSelChanged;
     AddEvents();
 }
Example #2
0
 public void SetRtf(RichTextControl rtfx)
 {
     if (rtfx == null)
     {
         return;                         // added to see if I could get the designer working.
     }
     if (_renderer == null)
     {
         RTF       = rtfx;
         _renderer = new MarginRenderer(this);
     }
 }