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 class HatchStyle

Member nameDescription
HorizontalA pattern of horizontal lines.
VerticalA pattern of vertical lines.
ForwardDiagonalA pattern of lines on a diagonal from upper left to lower right.
BackwardDiagonalA pattern of lines on a diagonal from upper right to lower left.
CrossSpecifies horizontal and vertical lines that cross.
DiagonalCrossA pattern of crisscross diagonal lines.
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.
LightDownwardDiagonalSpecifies diagonal lines that slant to the right from top points to bottom points and are spaced 50 percent closer together than ForwardDiagonal, but are not antialiased.
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.
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.
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.
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.
LightVerticalSpecifies vertical lines that are spaced 50 percent closer together than Vertical.
LightHorizontalSpecifies horizontal lines that are spaced 50 percent closer together than Horizontal.
NarrowVerticalSpecifies vertical lines that are spaced 75 percent closer together than hatch style Vertical (or 25 percent closer together than LightVertical).
NarrowHorizontalSpecifies horizontal lines that are spaced 75 percent closer together than hatch style Horizontal (or 25 percent closer together than LightHorizontal).
DarkVerticalSpecifies vertical lines that are spaced 50 percent closer together than Vertical and are twice its width.
DarkHorizontalSpecifies horizontal lines that are spaced 50 percent closer together than Horizontal and are twice the width of Horizontal.
DashedDownwardDiagonalSpecifies dashed diagonal lines, that slant to the right from top points to bottom points.
DashedUpwardDiagonalSpecifies dashed diagonal lines, that slant to the left from top points to bottom points.
DashedHorizontalSpecifies dashed horizontal lines.
DashedVerticalSpecifies dashed vertical lines.
SmallConfettiSpecifies a hatch that has the appearance of confetti.
LargeConfettiSpecifies a hatch that has the appearance of confetti, and is composed of larger pieces than SmallConfetti.
ZigZagSpecifies horizontal lines that are composed of zigzags.
WaveSpecifies horizontal lines that are composed of tildes.
DiagonalBrickSpecifies a hatch that has the appearance of layered bricks that slant to the left from top points to bottom points.
HorizontalBrickSpecifies a hatch that has the appearance of horizontally layered bricks.
WeaveSpecifies a hatch that has the appearance of a woven material.
PlaidSpecifies a hatch that has the appearance of a plaid material.
DivotSpecifies a hatch that has the appearance of divots.
DottedGridSpecifies horizontal and vertical lines, each of which is composed of dots, that cross.
DottedDiamondSpecifies forward diagonal and backward diagonal lines, each of which is composed of dots, that cross.
ShingleSpecifies a hatch that has the appearance of diagonally layered shingles that slant to the right from top points to bottom points.
TrellisSpecifies a hatch that has the appearance of a trellis.
SphereSpecifies a hatch that has the appearance of spheres laid adjacent to one another.
SmallGridSpecifies horizontal and vertical lines that cross and are spaced 50 percent closer together than hatch style Cross.
SmallCheckerBoardSpecifies a hatch that has the appearance of a checkerboard.
LargeCheckerBoardSpecifies a hatch that has the appearance of a checkerboard with squares that are twice the size of SmallCheckerBoard.
OutlinedDiamondSpecifies forward diagonal and backward diagonal lines that cross but are not antialiased.
SolidDiamondSpecifies a hatch that has the appearance of a checkerboard placed diagonally.
LargeGridSpecifies the hatch style Cross.
MinSpecifies hatch style Horizontal.
MaxSpecifies hatch style SolidDiamond.

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

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2014 Microsoft