---
title: "ViewerBase..::.InvalidateViewer Method (Rectangle)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_WinControls_ViewerBase_InvalidateViewer_1_fbc750e9.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# ViewerBase.InvalidateViewer Method (Rectangle)
 
Invalidates the specified region of the control and causes it to be repainted.
 
**Namespace:** [Aurigma.GraphicsMill.WinControls](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_WinControls.htm.md)
 **Assembly:** Aurigma.GraphicsMill.WinControls (in Aurigma.GraphicsMill.WinControls.dll)
 
## Syntax
  
```
Public MustOverride Sub InvalidateViewer ( _rectangle As Rectangle _
)
```
 
```csharp
public abstract void InvalidateViewer(Rectangle rectangle
)
```
 
### Parameters
 
 - rectangle
     - Type: [System.Drawing.Rectangle](http://msdn2.microsoft.com/en-us/1zk39146)
A rectangle that represents the region to invalidate.
 
## Remarks
  
It is recommended to use this method instead of [System.Windows.Forms.Control.Invalidate](http://msdn2.microsoft.com/en-us/598t492a).
 
This method allows repainting of a specific region belonging to the control.
   
## See Also

### Reference

- [ViewerBase Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_ViewerBase.htm.md)
- [InvalidateViewer Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_WinControls_ViewerBase_InvalidateViewer.htm.md)
- [Aurigma.GraphicsMill.WinControls Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_WinControls.htm.md)
