SearchTextBox.cs
/// <summary>
/// Gets the line the caret is on.
/// </summary>
/// <returns></returns>
Gets the line the caret is on.
Gets the line the caret is on .
public string GetCurrentLine()
        {
            string retVal = "";
            int ls = GetLineStart();
            int le = GetLineEnd();
            int length = le - ls + 1;
            if (length > -1)
                retVal = this.Text.Substring(ls, length);
            return retVal;
        }
public string GetCurrentLine ( ) { string retVal = " " ; int ls = GetLineStart ( ) ; int le = GetLineEnd ( ) ; int length = le - ls + 1 ; if ( length > - 1 ) retVal = this . Text . Substring ( ls , length ) ; return retVal ; }
Gets the line the caret is on.
Gets the line the caret is on .
None