예제 #1
0
 public void RichTextBoxFormat(ExpressionTextBox rtb)
 {
     foreach (TextElement elem in _Elements)
     {
         elem.RichTextBoxFormat(rtb);
     }
 }
예제 #2
0
            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;
            }
예제 #3
0
 public override void RichTextBoxFormat(ExpressionTextBox rtb)
 {
     rtb.Text += ToString();
 }
예제 #4
0
 public virtual void RichTextBoxFormat(ExpressionTextBox rtb)
 {
 }