This documentation is archived and is not being maintained.

HatchBrush Class

Defines a rectangular brush with a hatch style, a foreground color, and a background color. This class cannot be inherited.

For a list of all members of this type, see HatchBrush Members.


[Visual Basic]
NotInheritable Public Class HatchBrush
   Inherits Brush
public sealed class HatchBrush : Brush
public __gc __sealed class HatchBrush : public Brush
public class HatchBrush extends Brush

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


There are six hatch styles. The foreground color defines the color of lines; the background color defines the color of gaps between the lines.


Namespace: System.Drawing.Drawing2D

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

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

See Also

HatchBrush Members | System.Drawing.Drawing2D Namespace