BooLangService.BooSource.GetTextUptoPosition C# (CSharp) 메소드

GetTextUptoPosition() 공개 메소드

Gets all text on the specified line upto the column specified.
public GetTextUptoPosition ( int line, int col ) : string
line int
col int
리턴 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);
        }