scripting:api:text-document:find-scopes

FindScopes

Method of ITextDocument

Find Scopes from range

var ppScopes = TextDocument.FindScopes(pRange, bIncludeParents);
ppScopes = TextDocument.FindScopes pRange, bIncludeParents
CComPtr<IScopes> pScopes;
HRESULT hr = TextDocument.FindScopes(pRange, bIncludeParents, &pScopes);