HatchBrush Constructor (HatchStyle, Color)

 

Initializes a new instance of the HatchBrush class with the specified HatchStyle enumeration and foreground color.

Namespace:   System.Drawing.Drawing2D
Assembly:  System.Drawing (in System.Drawing.dll)

public:
HatchBrush(
	HatchStyle hatchstyle,
	Color foreColor
)

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.

The background color is initialized to black.

.NET Framework
Available since 1.1
Return to top
Show: