---
title: "RectangleRubberband..::.MaskStyle Property "
canonical: https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_WinControls_RectangleRubberband_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/)

# RectangleRubberband.MaskStyle Property 
 
Gets/sets a value which specified when to enable masking of the area outside of the 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
  
```
<BrowsableAttribute(True)> _
Public Property MaskStyle As MaskStyle
```
 
```csharp
[BrowsableAttribute(true)]
public MaskStyle MaskStyle { get; set; }
```
 
### Property Value
A member of the [MaskStyle](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_MaskStyle.htm.md) enumeration which specifies when to enable the mask.
 
## Remarks
  
The mask "shadows" the portion of the image which is out of the rectangle. It is convenient to use this feature when you are using the rubberband to specify the cropping frame. The masked area will represent the part of image which will be discarded after the crop.
 
The mask color can be modified with the [MaskColor](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_WinControls_RectangleRubberband_MaskColor.htm.md) property. The mask opacity is set with the [MaskOpacity](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_WinControls_RectangleRubberband_MaskOpacity.htm.md) property.
   
## See Also

### Reference

- [RectangleRubberband Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_RectangleRubberband.htm.md)
- [Aurigma.GraphicsMill.WinControls Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_WinControls.htm.md)
