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

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.
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.
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:95.
Percent10Specifies a 10-percent hatch. The ratio of foreground color to background color is 10:90.
Percent20Specifies a 20-percent hatch. The ratio of foreground color to background color is 20:80.
Percent25Specifies a 25-percent hatch. The ratio of foreground color to background color is 25:75.
Percent30Specifies a 30-percent hatch. The ratio of foreground color to background color is 30:70.
Percent40Specifies a 40-percent hatch. The ratio of foreground color to background color is 40:60.
Percent50Specifies a 50-percent hatch. The ratio of foreground color to background color is 50:50.
Percent60Specifies a 60-percent hatch. The ratio of foreground color to background color is 60:40.
Percent70Specifies a 70-percent hatch. The ratio of foreground color to background color is 70:30.
Percent75Specifies a 75-percent hatch. The ratio of foreground color to background color is 75:25.
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:10.
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.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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

Show:
© 2014 Microsoft