Invalidates shapes in the scope.
// C# public void InvalidateScope( string _query, string _style );
' VisualBasic Public Sub InvalidateScope( ByVal _query As String, ByVal _style As String )
// Oxygene public procedure InvalidateScope( _query : String; _style : String );
Use this method to invalidate only shapes that meet the scope criteria (even shapes that are not visible!). If changing some kind of shapes, we can refresh only the chosen shapes in order to improve performance.
The routine finds all shapes meeting given _query criteria executes its Invalidate method.
When using this method, never call any function which FindFirst..FindNext (i.e., any function which iterates through the shapes using it). So never use inside an like Locate, PaintScope etc.