<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.
using System.Runtime.CompilerServices; namespace System.Drawing.Drawing2D { public sealed class HatchBrush : Brush { public Color BackgroundColor { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public Color ForegroundColor { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public HatchStyle HatchStyle { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public HatchBrush(HatchStyle hatchstyle, Color foreColor) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } public HatchBrush(HatchStyle hatchstyle, Color foreColor, Color backColor) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } [System.Runtime.CompilerServices.NullableContext(1)] public override object Clone() { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } }