HatchStyle Enumeration

The HatchStyle enumeration defines the various hatch patterns that can be used to fill a region in GDI+.

These styles are used by the HatchBrush class to create fill patterns composed of repeating parallel lines.

Syntax

enum HatchStyle { ... };

You can use these enumerated values when constructing a HatchBrush object.

Members

HatchStyleHorizontal

Specifies a horizontal hatch pattern.

HatchStyleVertical

Specifies a vertical hatch pattern.

HatchStyleForwardDiagonal

Specifies a forward-diagonal hatch pattern (from bottom-left to top-right).

HatchStyleBackwardDiagonal

Specifies a backward-diagonal hatch pattern (from top-left to bottom-right).

HatchStyleCross

Specifies a cross hatch pattern.

HatchStyleDiagonalCross

Specifies a diagonal cross hatch pattern.

HatchStyle05Percent

Specifies a hatch pattern with 5% density.

HatchStyle10Percent

Specifies a hatch pattern with 10% density.

HatchStyle20Percent

Specifies a hatch pattern with 20% density.

HatchStyle25Percent

Specifies a hatch pattern with 25% density.

HatchStyle30Percent

Specifies a hatch pattern with 30% density.

HatchStyle40Percent

Specifies a hatch pattern with 40% density.

HatchStyle50Percent

Specifies a hatch pattern with 50% density.

HatchStyle60Percent

Specifies a hatch pattern with 60% density.

HatchStyle70Percent

Specifies a hatch pattern with 70% density.

HatchStyle75Percent

Specifies a hatch pattern with 75% density.

HatchStyle80Percent

Specifies a hatch pattern with 80% density.

HatchStyle90Percent

Specifies a hatch pattern with 90% density.

HatchStyleDarkDownwardDiagonal

Specifies a dark downward diagonal hatch pattern.

HatchStyleDarkUpwardDiagonal

Specifies a dark upward diagonal hatch pattern.

HatchStyleDarkHorizontal

Specifies a dark horizontal hatch pattern.

HatchStyleDarkVertical

Specifies a dark vertical hatch pattern.

HatchStyleDarkGray1

Specifies a dark gray hatch pattern (type 1).

HatchStyleDarkGray2

Specifies a dark gray hatch pattern (type 2).

HatchStyleDarkGray3

Specifies a dark gray hatch pattern (type 3).

HatchStyleDarkGray4

Specifies a dark gray hatch pattern (type 4).

HatchStyleDarkGray5

Specifies a dark gray hatch pattern (type 5).

HatchStyleDarkGray6

Specifies a dark gray hatch pattern (type 6).

HatchStyleDarkGray7

Specifies a dark gray hatch pattern (type 7).

HatchStyleDarkGray8

Specifies a dark gray hatch pattern (type 8).

HatchStyleLightDownwardDiagonal

Specifies a light downward diagonal hatch pattern.

HatchStyleLightUpwardDiagonal

Specifies a light upward diagonal hatch pattern.

HatchStyleLightHorizontal

Specifies a light horizontal hatch pattern.

HatchStyleLightVertical

Specifies a light vertical hatch pattern.

HatchStyleLightGray1

Specifies a light gray hatch pattern (type 1).

HatchStyleLightGray2

Specifies a light gray hatch pattern (type 2).

HatchStyleLightGray3

Specifies a light gray hatch pattern (type 3).

HatchStyleLightGray4

Specifies a light gray hatch pattern (type 4).

HatchStyleLightGray5

Specifies a light gray hatch pattern (type 5).

HatchStyleLightGray6

Specifies a light gray hatch pattern (type 6).

HatchStyleLightGray7

Specifies a light gray hatch pattern (type 7).

HatchStyleLightGray8

Specifies a light gray hatch pattern (type 8).

HatchStyleShingle

Specifies a shingle hatch pattern.

HatchStylePlaid

Specifies a plaid hatch pattern.

HatchStyleWeave

Specifies a weave hatch pattern.

HatchStyleDottedGrid

Specifies a dotted grid hatch pattern.

HatchStyleWovenLine

Specifies a woven line hatch pattern.

HatchStyleDivot

Specifies a divot hatch pattern.

HatchStyleTrellis

Specifies a trellis hatch pattern.

HatchStyleSphere

Specifies a sphere hatch pattern.

HatchStyleCylinder

Specifies a cylinder hatch pattern.

HatchStyleXLiteral

Specifies an X-literal hatch pattern.

HatchStyleZigZag

Specifies a zigzag hatch pattern.

HatchStyleWave

Specifies a wave hatch pattern.

HatchStyleScribble

Specifies a scribble hatch pattern.

HatchStyleSmallConfetti

Specifies a small confetti hatch pattern.

HatchStyleLargeConfetti

Specifies a large confetti hatch pattern.

HatchStyleTriangles

Specifies a triangles hatch pattern.

Requirements

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