====== FindScopes ======
Method of [[:scripting:api:text-document:start|ITextDocument]]
===== Description =====
Find Scopes from range
===== Parameters =====
* [[:scripting:api:range:overview|IRange]] **pRange**
* [[scripting:api:data-type:VARIANT_BOOL|VARIANT_BOOL]] **bIncludeParents** = VARIANT_FALSE (optional)
==== Return Value ====
* [[:scripting:api:scopes:start|IScopes]] **ppScopes**
===== Syntax =====
==== JavaScript ====
var ppScopes = TextDocument.FindScopes(pRange, bIncludeParents);
==== Visual Basic Script ====
ppScopes = TextDocument.FindScopes pRange, bIncludeParents
==== C++ ====
CComPtr pScopes;
HRESULT hr = TextDocument.FindScopes(pRange, bIncludeParents, &pScopes);
===== See Also =====
[[:scripting:api:text-document:start|ITextDocument]]
~~NOTOC~~