Class HatchBrush

HatchBrush class

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

public sealed class HatchBrush : Brush

Constructors

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

Properties

NameDescription
BackgroundColor { get; }Gets the color of spaces between the hatch lines drawn by this HatchBrush object.
ForegroundColor { get; }Gets the color of hatch lines drawn by this HatchBrush object.
HatchStyle { get; }Gets the hatch style of this HatchBrush object.

Methods

NameDescription
override Clone()Creates an exact copy of this HatchBrush object.
Dispose()Releases all resources used by this Brush object.

See Also