BooLangService.BooSource.GetTextUptoPosition C# (CSharp) Method

GetTextUptoPosition() public method

Gets all text on the specified line upto the column specified.
public GetTextUptoPosition ( int line, int col ) : string
line int
col int
return string
        public string GetTextUptoPosition(int line, int col)
        {
            TextSpan span = new TextSpan();

            span.iStartLine = line;
            span.iStartIndex = 0;
            span.iEndLine = line;
            span.iEndIndex = col;

            return GetText(span);
        }