---
title: "HatchBrush Constructor (HatchStyle, RgbColor)"
canonical: https://www.graphicsmill.com/docs/gm5/C_Aurigma_GraphicsMill_Drawing_HatchBrush_ctor_2_0f513c00.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/)

# HatchBrush Constructor (HatchStyle, RgbColor)
 
Creates new instance of the [HatchBrush](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Drawing_HatchBrush.htm.md) class. Here you construct hatch brush from hatch style and foreground color.
 
**Namespace:** [Aurigma.GraphicsMill.Drawing](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Drawing.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Sub New ( _hatchStyle As HatchStyle, _foreColor As RgbColor _
)
```
 
```csharp
public HatchBrush(HatchStyle hatchStyle,RgbColor foreColor
)
```
 
### Parameters
 
 - hatchStyle
     - Type: [Aurigma.GraphicsMill.Drawing.HatchStyle](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Drawing_HatchStyle.htm.md)
 [HatchStyle](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Drawing_HatchStyle.htm.md) value specifying hatch style of the brush. You can change this value later through property [HatchStyle](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Drawing_HatchBrush_HatchStyle.htm.md).

 - foreColor
     - Type: [Aurigma.GraphicsMill.RgbColor](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_RgbColor.htm.md)
 [RgbColor](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_RgbColor.htm.md) value specifying foreground color of the brush. You can change this value later through property [ForegroundColor](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Drawing_HatchBrush_ForegroundColor.htm.md).
 
## Remarks
 When you create brush with this constructor, background is disabled. You can change this later by setting [TransparentBackground](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Drawing_HatchBrush_TransparentBackground.htm.md) property to **false** and specifying necessary value to the [BackgroundColor](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Drawing_HatchBrush_BackgroundColor.htm.md).
   
## See Also

### Reference

- [HatchBrush Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Drawing_HatchBrush.htm.md)
- [HatchBrush Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_Drawing_HatchBrush_ctor.htm.md)
- [Aurigma.GraphicsMill.Drawing Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Drawing.htm.md)
