# OfficeHatchPatternKind

Shared dependency-free hatch pattern primitives used by OfficeIMO image renderers.

Enum 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeHatchPatternKind.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeHatchPatternKind.cs#L6)

**Base**

`Enum`

**Implements**

`IComparable` `ISpanFormattable` `IFormattable` `IConvertible`

**Modifiers**

sealed

Shared dependency-free hatch pattern primitives used by OfficeIMO image renderers.

## Inheritance

- Enum
- OfficeHatchPatternKind

## Usage

Explore 14 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 12

- Field [OfficeHatchPatternKind.DiagonalDown](/api/core/officeimo-drawing-officehatchpatternkind/#field-diagonaldown)
- Field [OfficeHatchPatternKind.DiagonalUp](/api/core/officeimo-drawing-officehatchpatternkind/#field-diagonalup)
- Field [OfficeHatchPatternKind.Dotted](/api/core/officeimo-drawing-officehatchpatternkind/#field-dotted)
- Field [OfficeHatchPatternKind.Grid](/api/core/officeimo-drawing-officehatchpatternkind/#field-grid)
- Field [OfficeHatchPatternKind.Horizontal](/api/core/officeimo-drawing-officehatchpatternkind/#field-horizontal)
- Field [OfficeHatchPatternKind.Percent12_5](/api/core/officeimo-drawing-officehatchpatternkind/#field-percent12-5)
- Field [OfficeHatchPatternKind.Percent25](/api/core/officeimo-drawing-officehatchpatternkind/#field-percent25)
- Field [OfficeHatchPatternKind.Percent50](/api/core/officeimo-drawing-officehatchpatternkind/#field-percent50)
- Field [OfficeHatchPatternKind.Percent6_25](/api/core/officeimo-drawing-officehatchpatternkind/#field-percent6-25)
- Field [OfficeHatchPatternKind.Percent75](/api/core/officeimo-drawing-officehatchpatternkind/#field-percent75)
- Field [OfficeHatchPatternKind.Trellis](/api/core/officeimo-drawing-officehatchpatternkind/#field-trellis)
- Field [OfficeHatchPatternKind.Vertical](/api/core/officeimo-drawing-officehatchpatternkind/#field-vertical)

### Accepted by parameters 2

- Method [OfficeRasterCanvas.DrawHatchPatternRectangle](/api/core/officeimo-drawing-officerastercanvas/#method-drawhatchpatternrectangle-double-double-double-double-officeimo-officecolor-double-double-officeimo-drawing-officehatchpatternkind) parameter `pattern`
- Method [OfficeSvgFormatting.AppendHatchPatternRectangle](/api/core/officeimo-drawing-officesvgformatting/#method-appendhatchpatternrectangle-text-stringbuilder-double-double-double-double-officeimo-officecolor-double-double-officeimo-drawing-officehatchpatternkind) parameter `pattern`

Filter members 

Show inherited

## Inherited Methods

`public int CompareTo(object? target)` [#](#method-compareto-object)

Inherited from Enum

Parameters

**target object? required**

Returns

`int`

`public override bool Equals(object? obj)` [#](#method-equals-object)

Inherited from Enum

Parameters

**obj object? required**

Returns

`bool`

`public override int GetHashCode()` [#](#method-gethashcode)

Inherited from Enum

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public TypeCode GetTypeCode()` [#](#method-gettypecode)

Inherited from Enum

Returns

`TypeCode`

`public bool HasFlag(Enum flag)` [#](#method-hasflag-enum)

Inherited from Enum

Parameters

**flag Enum required**

Returns

`bool`

ToString 4 overloads

`public override string ToString()` [#](#method-tostring)

Inherited from Enum

Returns

`string`

`public string ToString(string? format)` [#](#method-tostring-string)

Inherited from Enum

Parameters

**format string? required**

Returns

`string`

`public string ToString(IFormatProvider? provider)` [#](#method-tostring-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString() instead.")`

Parameters

**provider IFormatProvider? required**

Returns

`string`

`public string ToString(string? format, IFormatProvider? provider)` [#](#method-tostring-string-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString(String) instead.")`

Parameters

**format string? required**

**provider IFormatProvider? required**

Returns

`string`

## Values

`public const OfficeHatchPatternKind Horizontal` [#](#field-horizontal)

[OfficeHatchPatternKind.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeHatchPatternKind.cs#L8)

Horizontal hatch lines.

Value: `0`

`public const OfficeHatchPatternKind Vertical` [#](#field-vertical)

[OfficeHatchPatternKind.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeHatchPatternKind.cs#L11)

Vertical hatch lines.

Value: `1`

`public const OfficeHatchPatternKind DiagonalDown` [#](#field-diagonaldown)

[OfficeHatchPatternKind.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeHatchPatternKind.cs#L14)

Diagonal lines descending from left to right.

Value: `2`

`public const OfficeHatchPatternKind DiagonalUp` [#](#field-diagonalup)

[OfficeHatchPatternKind.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeHatchPatternKind.cs#L17)

Diagonal lines ascending from left to right.

Value: `3`

`public const OfficeHatchPatternKind Grid` [#](#field-grid)

[OfficeHatchPatternKind.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeHatchPatternKind.cs#L20)

Horizontal and vertical hatch lines.

Value: `4`

`public const OfficeHatchPatternKind Trellis` [#](#field-trellis)

[OfficeHatchPatternKind.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeHatchPatternKind.cs#L23)

Crossed diagonal hatch lines.

Value: `5`

`public const OfficeHatchPatternKind Dotted` [#](#field-dotted)

[OfficeHatchPatternKind.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeHatchPatternKind.cs#L26)

Small repeated square dots.

Value: `6`

`public const OfficeHatchPatternKind Percent6_25` [#](#field-percent6-25)

[OfficeHatchPatternKind.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeHatchPatternKind.cs#L29)

Stipple fill with roughly 6.25 percent foreground coverage.

Value: `7`

`public const OfficeHatchPatternKind Percent12_5` [#](#field-percent12-5)

[OfficeHatchPatternKind.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeHatchPatternKind.cs#L32)

Stipple fill with roughly 12.5 percent foreground coverage.

Value: `8`

`public const OfficeHatchPatternKind Percent25` [#](#field-percent25)

[OfficeHatchPatternKind.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeHatchPatternKind.cs#L35)

Stipple fill with roughly 25 percent foreground coverage.

Value: `9`

`public const OfficeHatchPatternKind Percent50` [#](#field-percent50)

[OfficeHatchPatternKind.cs:38](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeHatchPatternKind.cs#L38)

Stipple fill with roughly 50 percent foreground coverage.

Value: `10`

`public const OfficeHatchPatternKind Percent75` [#](#field-percent75)

[OfficeHatchPatternKind.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/OfficeHatchPatternKind.cs#L41)

Stipple fill with roughly 75 percent foreground coverage.

Value: `11`

<!-- PowerForge markdown artifact sha256:3E6E947A32C203A43C72CB8B9D9C21165BBFF31F221913C3E173D60111D2AC76 -->
