Skip to main content

HatchBrush

Namespace: System.Drawing.Drawing2D

Assembly: System.Drawing.Managed (4.0.0.0)

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

public class HatchBrush : Brush

Constructors

Instance member HatchBrush(hatchstyle, foreColor)

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

NameTypeDescription
hatchstyleHatchStyleOne of the HatchStyle values that represents the pattern drawn by this HatchBrush.
foreColorColorThe Color structure that represents the color of lines drawn by this HatchBrush.

Instance member HatchBrush(hatchstyle, foreColor, backColor)

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

NameTypeDescription
hatchstyleHatchStyleOne of the HatchStyle values that represents the pattern drawn by this HatchBrush.
foreColorColorThe Color structure that represents the color of lines drawn by this HatchBrush.
backColorColorThe Color structure that represents the color of spaces between the lines drawn by this HatchBrush.

Properties

Instance member BackgroundColor

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

Instance member ForegroundColor

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

Instance member HatchStyle

HatchStyle: Gets the hatch style of this HatchBrush object.

Methods

Instance member Clone()

Returns: Object.