public StyleWatcher(RichTextControl rtf, params ToolStripItem[] tsis) { foreach (ToolStripItem tsi in tsis) { Items.Add(tsi.Tag, tsi); } RTF = rtf; rtf.SelectionChanged += eSelChanged; AddEvents(); }
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); } }