IsInScope property

Microsoft Visio Developer Reference

IsInScope property

       

Determines whether a call to an event handler is between an EnterScope event and an ExitScope event for a scope.

Version added

2000

Syntax

boolVal = object.IsInScope (nScopeID)

boolVal

Boolean. True if an EnterScope event has fired for the scope ID, but an ExitScope event hasn't fired yet; False if an EnterScope event hasn't fired or EnterScope and ExitScope events have both fired.

object

Required. An expression that returns an Application object.

nScopeID

Required Long. The scope ID.

Remarks

Constants representing scope IDs are prefixed with visCmd and are declared by the Visio type library. You can also use an ID returned by the BeginUndoScope method.

You could use this property in a CellChanged event handler to determine whether a cell change was the result of a particular operation.