---
title: "MaskStyle Enumeration"
canonical: https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_MaskStyle.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/)

# MaskStyle Enumeration
 
Contains possible values for the [MaskStyle](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_WinControls_RectangleRubberband_MaskStyle.htm.md) which specifies when to display the mask around the rectangle represented with the [RectangleRubberband](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_RectangleRubberband.htm.md) class.
 
**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 Enumeration MaskStyle
```
 
```csharp
public enum MaskStyle
```
 
## Members

|   |  Member name |  Description |
| --- | --- | --- |
 |   |  None |  Never display the mask. |
 |   |  Always |  Display the mask always, even when the rectangle is moved or resized. |
 |   |  HideOnChange |  Display the mask only when the rectangle is not changing. If user moves or resizes the rectangle, the mask is hidden. |
 
## Remarks
  
The mask displaying is working quite slow, that's why if you want to increase the performance when the rectangle is moved or resized by user, it is recommended to use HideOnChange value.
   
## See Also

### Reference

- [Aurigma.GraphicsMill.WinControls Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_WinControls.htm.md)
