SearchTextBox.cs
/// <summary>
/// returns the position of the end of the current line.
/// </summary>
/// <returns></returns>
returns the position of the end of the current line.
returns the position of the end of the current line .
private int GetLineEnd()
        {
            int i = this.SelectionStart;
            if (i >= this.Text.Length)
            {
                return this.Text.Length - 1;
            }
            char current = this.Text[i];
            while (i < this.Text.Length 
                                      && current != '\n')
            {
                i++;
                current = this.Text[i];
            }
            return i;
        }
private int GetLineEnd ( ) { int i = this . SelectionStart ; if ( i >= this . Text . Length ) { return this . Text . Length - 1 ; } char current = this . Text [ i ] ; while ( i < this . Text . Length && current != ' \n ' ) { i ++ ; current = this . Text [ i ] ; } return i ; }
returns the position of the end of the current line.
returns the position of the end of the current line .
//			int ret = 0; /*&& current != ' ' && 
					current != ',' */ //				ret++;
None