예제 #1
0
        //RichTextBox ZMIANY KOLORU LINII;

        public void ChangeLineForeColor(Color color, string expression, int numerLinii)
        {
            int start  = KOD_RichTextBox.GetFirstCharIndexFromLine(numerLinii);
            int koniec = expression.Length;

            KOD_RichTextBox.SelectionStart  = start;
            KOD_RichTextBox.SelectionLength = koniec;
            KOD_RichTextBox.SelectionColor  = color;
        }
예제 #2
0
 public void ResetLinesColor()
 {
     KOD_RichTextBox.SelectAll();
     KOD_RichTextBox.SelectionColor = Color.Black;
 }