public void RichTextBoxFormat(ExpressionTextBox rtb) { foreach (TextElement elem in _Elements) { elem.RichTextBoxFormat(rtb); } }
public override void RichTextBoxFormat(ExpressionTextBox rtb) { Color tempColor = rtb.SelectionColor; Color tempBackColor = rtb.SelectionBackColor; //rtb.Select(startPos, 0); rtb.Select(startPos, baseNode.Name.Length); rtb.SelectionColor = rtb.BaseNodeColor; rtb.SelectionBackColor = rtb.BaseNodeBackColor; rtb.SelectedText = ToString(); //rtb.Select(startPos, baseNode.Name.Length); rtb.SelectionColor = tempColor; rtb.SelectionBackColor = tempBackColor; }
public override void RichTextBoxFormat(ExpressionTextBox rtb) { rtb.Text += ToString(); }
public virtual void RichTextBoxFormat(ExpressionTextBox rtb) { }