---
title: "RectangleController Class"
canonical: https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_RectangleController.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/)

# RectangleController Class
 
This is a base class for all the navigators or rubberbands which should display a rectangle.
 
**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 MustInherit Class RectangleController _Inherits UserInputController
```
 
```csharp
public abstract class RectangleController : UserInputController
```
 
## Remarks
  
Currently this class has two descendants: the navigator [ZoomRectangleNavigator](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_ZoomRectangleNavigator.htm.md) and the rubberband [RectangleRubberband](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_RectangleRubberband.htm.md).
 
This class implements the functionality for displaying a rectangle rubberband. You can change the rectangle appearance with [OutlineColor1](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_WinControls_RectangleController_OutlineColor1.htm.md), [OutlineColor2](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_WinControls_RectangleController_OutlineColor2.htm.md), [OutlineWidth](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_WinControls_RectangleController_OutlineWidth.htm.md), and [OutlineStyle](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_WinControls_RectangleController_OutlineStyle.htm.md) properties.
 
## Inheritance Hierarchy
  
- [System.Object](http://msdn2.microsoft.com/en-us/e5kfa45b)
    - [System.MarshalByRefObject](http://msdn2.microsoft.com/en-us/w4302s1f)
        - [System.ComponentModel.Component](http://msdn2.microsoft.com/en-us/9wbadbce)
            - [Aurigma.GraphicsMill.WinControls.UserInputController](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_UserInputController.htm.md)
                - Aurigma.GraphicsMill.WinControls.RectangleController
                    - [Aurigma.GraphicsMill.WinControls.RectangleRubberband](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_RectangleRubberband.htm.md)
                    - [Aurigma.GraphicsMill.WinControls.ZoomRectangleNavigator](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_ZoomRectangleNavigator.htm.md)
 
## Thread Safety
 Static members of this type are safe for multi-threaded operations. Instance members of this type are not safe for multi-threaded operations.
   
## See Also

### Reference

- [RectangleController Members](https://www.graphicsmill.com/docs/gm5/AllMembers_T_Aurigma_GraphicsMill_WinControls_RectangleController.htm.md)
- [Aurigma.GraphicsMill.WinControls Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_WinControls.htm.md)
