> For the complete documentation index, see [llms.txt](https://docs.wisej.com/system.drawing.managed/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wisej.com/system.drawing.managed/api/system.drawing.drawing2d/system.drawing.drawing2d.hatchstyle.md).

# HatchStyle

Namespace: **System.Drawing.Drawing2D**

Assembly: **System.Drawing.Managed** (4.0.0.0)

Specifies the different patterns available for [HatchBrush](/system.drawing.managed/api/system.drawing.drawing2d/system.drawing.drawing2d.hatchbrush.md) objects.

{% tabs %}
{% tab title="C#" %}

```csharp
public enum HatchStyle : Enum
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Enum HatchStyle As [Enum]
```

{% endtab %}
{% endtabs %}

## Fields

| Name                       | Description                                                                                                                                                                                                                  |
| -------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **BackwardDiagonal**       | A pattern of lines on a diagonal from upper right to lower left.                                                                                                                                                             |
| **Cross**                  | Specifies horizontal and vertical lines that cross.                                                                                                                                                                          |
| **DarkDownwardDiagonal**   | Specifies 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](#fields). This hatch pattern is not antialiased. |
| **DarkHorizontal**         | Specifies horizontal lines that are spaced 50 percent closer together than Horizontal and are twice the width of Horizontal.                                                                                                 |
| **DarkUpwardDiagonal**     | Specifies diagonal lines that slant to the left from top points to bottom points, are spaced 50 percent closer together than [BackwardDiagonal](#fields), and are twice its width, but the lines are not antialiased.        |
| **DarkVertical**           | Specifies vertical lines that are spaced 50 percent closer together than Vertical and are twice its width.                                                                                                                   |
| **DashedDownwardDiagonal** | Specifies dashed diagonal lines, that slant to the right from top points to bottom points.                                                                                                                                   |
| **DashedHorizontal**       | Specifies dashed horizontal lines.                                                                                                                                                                                           |
| **DashedUpwardDiagonal**   | Specifies dashed diagonal lines, that slant to the left from top points to bottom points.                                                                                                                                    |
| **DashedVertical**         | Specifies dashed vertical lines.                                                                                                                                                                                             |
| **DiagonalBrick**          | Specifies a hatch that has the appearance of layered bricks that slant to the left from top points to bottom points.                                                                                                         |
| **DiagonalCross**          | A pattern of crisscross diagonal lines.                                                                                                                                                                                      |
| **Divot**                  | Specifies a hatch that has the appearance of divots.                                                                                                                                                                         |
| **DottedDiamond**          | Specifies forward diagonal and backward diagonal lines, each of which is composed of dots, that cross.                                                                                                                       |
| **DottedGrid**             | Specifies horizontal and vertical lines, each of which is composed of dots, that cross.                                                                                                                                      |
| **ForwardDiagonal**        | A pattern of lines on a diagonal from upper left to lower right.                                                                                                                                                             |
| **Horizontal**             | A pattern of horizontal lines.                                                                                                                                                                                               |
| **HorizontalBrick**        | Specifies a hatch that has the appearance of horizontally layered bricks.                                                                                                                                                    |
| **LargeCheckerBoard**      | Specifies a hatch that has the appearance of a checkerboard with squares that are twice the size of [SmallCheckerBoard](#fields).                                                                                            |
| **LargeConfetti**          | Specifies a hatch that has the appearance of confetti, and is composed of larger pieces than [SmallConfetti](#fields).                                                                                                       |
| **LargeGrid**              | Specifies the hatch style Cross.                                                                                                                                                                                             |
| **LightDownwardDiagonal**  | Specifies diagonal lines that slant to the right from top points to bottom points and are spaced 50 percent closer together than [ForwardDiagonal](#fields), but are not antialiased.                                        |
| **LightHorizontal**        | Specifies horizontal lines that are spaced 50 percent closer together than [Horizontal](#fields).                                                                                                                            |
| **LightUpwardDiagonal**    | Specifies diagonal lines that slant to the left from top points to bottom points and are spaced 50 percent closer together than [BackwardDiagonal](#fields), but they are not antialiased.                                   |
| **LightVertical**          | Specifies vertical lines that are spaced 50 percent closer together than Vertical.                                                                                                                                           |
| **Max**                    | Specifies hatch style [LargeGrid](#fields).                                                                                                                                                                                  |
| **Min**                    | Specifies hatch style [Horizontal](#fields).                                                                                                                                                                                 |
| **NarrowHorizontal**       | Specifies horizontal lines that are spaced 75 percent closer together than hatch style [Horizontal](#fields) (or 25 percent closer together than LightHorizontal).                                                           |
| **NarrowVertical**         | Specifies vertical lines that are spaced 75 percent closer together than hatch style [Vertical](#fields) (or 25 percent closer together than LightVertical).                                                                 |
| **OutlinedDiamond**        | Specifies forward diagonal and backward diagonal lines that cross but are not antialiased.                                                                                                                                   |
| **Percent05**              | Specifies a 5-percent hatch. The ratio of foreground color to background color is 5:95.                                                                                                                                      |
| **Percent10**              | Specifies a 10-percent hatch. The ratio of foreground color to background color is 10:90.                                                                                                                                    |
| **Percent20**              | Specifies a 20-percent hatch. The ratio of foreground color to background color is 20:80.                                                                                                                                    |
| **Percent25**              | Specifies a 25-percent hatch. The ratio of foreground color to background color is 25:75.                                                                                                                                    |
| **Percent30**              | Specifies a 30-percent hatch. The ratio of foreground color to background color is 30:70.                                                                                                                                    |
| **Percent40**              | Specifies a 40-percent hatch. The ratio of foreground color to background color is 40:60.                                                                                                                                    |
| **Percent50**              | Specifies a 50-percent hatch. The ratio of foreground color to background color is 50:50.                                                                                                                                    |
| **Percent60**              | Specifies a 60-percent hatch. The ratio of foreground color to background color is 60:40.                                                                                                                                    |
| **Percent70**              | Specifies a 70-percent hatch. The ratio of foreground color to background color is 70:30.                                                                                                                                    |
| **Percent75**              | Specifies a 75-percent hatch. The ratio of foreground color to background color is 75:25.                                                                                                                                    |
| **Percent80**              | Specifies a 80-percent hatch. The ratio of foreground color to background color is 80:100.                                                                                                                                   |
| **Percent90**              | Specifies a 90-percent hatch. The ratio of foreground color to background color is 90:10.                                                                                                                                    |
| **Plaid**                  | Specifies a hatch that has the appearance of a plaid material.                                                                                                                                                               |
| **Shingle**                | Specifies a hatch that has the appearance of diagonally layered shingles that slant to the right from top points to bottom points.                                                                                           |
| **SmallCheckerBoard**      | Specifies a hatch that has the appearance of a checkerboard.                                                                                                                                                                 |
| **SmallConfetti**          | Specifies a hatch that has the appearance of confetti.                                                                                                                                                                       |
| **SmallGrid**              | Specifies horizontal and vertical lines that cross and are spaced 50 percent closer together than hatch style [Cross](#fields).                                                                                              |
| **SolidDiamond**           | Specifies a hatch that has the appearance of a checkerboard placed diagonally.                                                                                                                                               |
| **Sphere**                 | Specifies a hatch that has the appearance of spheres laid adjacent to one another.                                                                                                                                           |
| **Trellis**                | Specifies a hatch that has the appearance of a trellis.                                                                                                                                                                      |
| **Vertical**               | A pattern of vertical lines.                                                                                                                                                                                                 |
| **Wave**                   | Specifies horizontal lines that are composed of tildes.                                                                                                                                                                      |
| **Weave**                  | Specifies a hatch that has the appearance of a woven material.                                                                                                                                                               |
| **WideDownwardDiagonal**   | Specifies diagonal lines that slant to the right from top points to bottom points, have the same spacing as hatch style [ForwardDiagonal](#fields), and are triple its width, but are not antialiased.                       |
| **WideUpwardDiagonal**     | Specifies diagonal lines that slant to the left from top points to bottom points, have the same spacing as hatch style [BackwardDiagonal](#fields), and are triple its width, but are not antialiased.                       |
| **ZigZag**                 | Specifies horizontal lines that are composed of zigzags.                                                                                                                                                                     |

## Used By

| Name                                                                                                                 | Description                                                                                                                                    |
| -------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| [HatchBrush.HatchStyle](/system.drawing.managed/api/system.drawing.drawing2d/system.drawing.drawing2d.hatchstyle.md) | Gets the hatch style of this [HatchBrush](/system.drawing.managed/api/system.drawing.drawing2d/system.drawing.drawing2d.hatchbrush.md) object. |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.wisej.com/system.drawing.managed/api/system.drawing.drawing2d/system.drawing.drawing2d.hatchstyle.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
