Export (0) Print
Expand All

HatchStyle Enumeration

Specifies the different patterns available for HatchBrush objects.

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

public enum HatchStyle
public enum HatchStyle
public enum HatchStyle

 Member nameDescription
BackwardDiagonalA pattern of lines on a diagonal from upper right to lower left. 
CrossSpecifies horizontal and vertical lines that cross. 
DarkDownwardDiagonalSpecifies diagonal lines that slant to the right from top points to bottom points, are spaced 50 percent closer together than, and are twice the width of ForwardDiagonal. This hatch pattern is not antialiased. 
DarkHorizontalSpecifies horizontal lines that are spaced 50 percent closer together than Horizontal and are twice the width of Horizontal
DarkUpwardDiagonalSpecifies diagonal lines that slant to the left from top points to bottom points, are spaced 50 percent closer together than BackwardDiagonal, and are twice its width, but the lines are not antialiased. 
DarkVerticalSpecifies vertical lines that are spaced 50 percent closer together than Vertical and are twice its width. 
DashedDownwardDiagonalSpecifies dashed diagonal lines, that slant to the right from top points to bottom points. 
DashedHorizontalSpecifies dashed horizontal lines. 
DashedUpwardDiagonalSpecifies dashed diagonal lines, that slant to the left from top points to bottom points. 
DashedVerticalSpecifies dashed vertical lines. 
DiagonalBrickSpecifies a hatch that has the appearance of layered bricks that slant to the left from top points to bottom points. 
DiagonalCrossA pattern of crisscross diagonal lines. 
DivotSpecifies a hatch that has the appearance of divots. 
DottedDiamondSpecifies forward diagonal and backward diagonal lines, each of which is composed of dots, that cross. 
DottedGridSpecifies horizontal and vertical lines, each of which is composed of dots, that cross. 
ForwardDiagonalA pattern of lines on a diagonal from upper left to lower right. 
HorizontalA pattern of horizontal lines. 
HorizontalBrickSpecifies a hatch that has the appearance of horizontally layered bricks. 
LargeCheckerBoardSpecifies a hatch that has the appearance of a checkerboard with squares that are twice the size of SmallCheckerBoard
LargeConfettiSpecifies a hatch that has the appearance of confetti, and is composed of larger pieces than SmallConfetti
LargeGridSpecifies the hatch style Cross
LightDownwardDiagonal 
LightHorizontalSpecifies horizontal lines that are spaced 50 percent closer together than Horizontal
LightUpwardDiagonalSpecifies diagonal lines that slant to the left from top points to bottom points and are spaced 50 percent closer together than BackwardDiagonal, but they are not antialiased. 
LightVerticalSpecifies vertical lines that are spaced 50 percent closer together than Vertical
MaxSpecifies hatch style SolidDiamond
MinSpecifies hatch style Horizontal
NarrowHorizontalSpecifies horizontal lines that are spaced 75 percent closer together than hatch style Horizontal (or 25 percent closer together than LightHorizontal). 
NarrowVerticalSpecifies vertical lines that are spaced 75 percent closer together than hatch style Vertical (or 25 percent closer together than LightVertical). 
OutlinedDiamondSpecifies forward diagonal and backward diagonal lines that cross but are not antialiased. 
Percent05Specifies a 5-percent hatch. The ratio of foreground color to background color is 5:100. 
Percent10Specifies a 10-percent hatch. The ratio of foreground color to background color is 10:100. 
Percent20Specifies a 20-percent hatch. The ratio of foreground color to background color is 20:100. 
Percent25Specifies a 25-percent hatch. The ratio of foreground color to background color is 25:100. 
Percent30Specifies a 30-percent hatch. The ratio of foreground color to background color is 30:100. 
Percent40Specifies a 40-percent hatch. The ratio of foreground color to background color is 40:100. 
Percent50Specifies a 50-percent hatch. The ratio of foreground color to background color is 50:100. 
Percent60Specifies a 60-percent hatch. The ratio of foreground color to background color is 60:100. 
Percent70Specifies a 70-percent hatch. The ratio of foreground color to background color is 70:100. 
Percent75Specifies a 75-percent hatch. The ratio of foreground color to background color is 75:100. 
Percent80Specifies a 80-percent hatch. The ratio of foreground color to background color is 80:100. 
Percent90Specifies a 90-percent hatch. The ratio of foreground color to background color is 90:100. 
PlaidSpecifies a hatch that has the appearance of a plaid material. 
ShingleSpecifies a hatch that has the appearance of diagonally layered shingles that slant to the right from top points to bottom points. 
SmallCheckerBoardSpecifies a hatch that has the appearance of a checkerboard. 
SmallConfettiSpecifies a hatch that has the appearance of confetti. 
SmallGridSpecifies horizontal and vertical lines that cross and are spaced 50 percent closer together than hatch style Cross
SolidDiamondSpecifies a hatch that has the appearance of a checkerboard placed diagonally. 
SphereSpecifies a hatch that has the appearance of spheres laid adjacent to one another. 
TrellisSpecifies a hatch that has the appearance of a trellis. 
VerticalA pattern of vertical lines. 
WaveSpecifies horizontal lines that are composed of tildes. 
WeaveSpecifies a hatch that has the appearance of a woven material. 
WideDownwardDiagonalSpecifies diagonal lines that slant to the right from top points to bottom points, have the same spacing as hatch style ForwardDiagonal, and are triple its width, but are not antialiased. 
WideUpwardDiagonalSpecifies diagonal lines that slant to the left from top points to bottom points, have the same spacing as hatch style BackwardDiagonal, and are triple its width, but are not antialiased. 
ZigZagSpecifies horizontal lines that are composed of zigzags. 

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2014 Microsoft