<PackageReference Include="System.Drawing.Common" Version="9.0.5" />

HatchBrush

public sealed class HatchBrush : Brush
Defines a rectangular brush with a hatch style, a foreground color, and a background color. This class cannot be inherited.
public Color BackgroundColor { get; }

Gets the color of spaces between the hatch lines drawn by this HatchBrush object.

public Color ForegroundColor { get; }

Gets the color of hatch lines drawn by this HatchBrush object.

public HatchStyle HatchStyle { get; }

Gets the hatch style of this HatchBrush object.

public HatchBrush(HatchStyle hatchstyle, Color foreColor)

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

public HatchBrush(HatchStyle hatchstyle, Color foreColor, Color backColor)

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