HatchBrush Constructor (HatchStyle, Color, Color)
.NET Framework (current version)
Initializes a new instance of the HatchBrush class with the specified HatchStyle enumeration, foreground color, and background color.
Assembly: System.Drawing (in System.Drawing.dll)
Parameters
- hatchstyle
-
Type:
System.Drawing.Drawing2D::HatchStyle
One of the HatchStyle values that represents the pattern drawn by this HatchBrush.
- foreColor
-
Type:
System.Drawing::Color
The Color structure that represents the color of lines drawn by this HatchBrush.
- backColor
-
Type:
System.Drawing::Color
The Color structure that represents the color of spaces between the lines drawn by this HatchBrush.
The following illustration shows an ellipse filled with a horizontal hatch pattern.

The following example shows how to use the HatchBrush to create the HatchBrush shown in the previous illustration.
.NET Framework
Available since 1.1
Available since 1.1
Show: