CreateRange2

Method of IApplication

Creates Range Object from lines + positions

  • long nStartLine = -1 (optional)
  • long nStartPos = -1 (optional)
  • long nEndLine = -1 (optional)
  • long nEndPos = -1 (optional)

Return Value

JavaScript

var ppRange = Application.CreateRange2(nStartLine, nStartPos, nEndLine, nEndPos);

Visual Basic Script

ppRange = Application.CreateRange2 nStartLine, nStartPos, nEndLine, nEndPos

C++

CComPtr<IRange> pRange;
HRESULT hr = Application.CreateRange2(nStartLine, nStartPos, nEndLine, nEndPos, &pRange);