示例#1
0
 /// <summary>
 /// Gets a FilePosition relative to this position by adding the
 /// provided line and column offset relative to the contents of
 /// the current file.
 /// </summary>
 /// <param name="lineOffset">The line offset to add to this position.</param>
 /// <param name="columnOffset">The column offset to add to this position.</param>
 /// <returns>A new FilePosition instance for the calculated position.</returns>
 public DocumentPosition AddOffset(int lineOffset, int columnOffset)
 {
     return(document.CalculatePosition(
                this,
                lineOffset,
                columnOffset));
 }