FindScopes

Method of IDocumentStructure

Find Scopes from range

Return Value

JavaScript

var ppScopes = DocumentStructure.FindScopes(pRange, bIncludeParents);

Visual Basic Script

ppScopes = DocumentStructure.FindScopes pRange, bIncludeParents

C++

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