# HatchPatternTable class

Namespace: [Rhino.DocObjects.Tables](https://developer.rhino3d.com/api/rhinocommon/namespace/rhino.docobjects.tables.md) · Assembly: [RhinoCommon](https://developer.rhino3d.com/api/rhinocommon/assembly/rhinocommon.md)

```cs
public sealed class HatchPatternTable : RhinoDocCommonTable<HatchPattern>, ICollection<HatchPattern>
```

All of the hatch pattern definitions contained in a rhino document.

## Properties

- [ComponentType](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.hatchpatterntable/componenttype.md)
- [CurrentHatchPatternIndex](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.hatchpatterntable/currenthatchpatternindex.md): At all times, there is a "current" hatch pattern. Unless otherwise specified, new objects are assigned to the current hatch pattern. The current hatch pattern is never locked, hidden, or deleted.

## Indexers

- [this[]](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.hatchpatterntable/item.md): Conceptually, the hatch pattern table is an array of hatch patterns. The operator[] can be used to get individual hatch patterns. A hatch pattern is either active or deleted and this state is reported by HatchPattern.IsDeleted.

## Methods

- [Add](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.hatchpatterntable/add.md): Adds a new hatch pattern with specified definition to the table.
- [Delete](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.hatchpatterntable/delete.md): (5 overloads) Deletes a hatch pattern from the table.
- [Find](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.hatchpatterntable/find.md): (obsolete) Finds the hatch pattern with a given name. Search ignores case.
- [FindIndex](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.hatchpatterntable/findindex.md): Retrieves a HatchPattern object based on Index. This search type of search is discouraged. We are moving towards using only IDs for all tables.
- [FindName](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.hatchpatterntable/findname.md): Finds the hatch pattern with a given name. Search ignores case.
- [FindNameHash](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.hatchpatterntable/findnamehash.md): Finds a HatchPattern given its name hash.
- [GetUnusedHatchPatternName](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.hatchpatterntable/getunusedhatchpatternname.md): Gets unused hatchpattern name used as default when creating new hatchpatterns.
- [Modify](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.hatchpatterntable/modify.md): Modify hatch pattern settings.
- [PurgeUnused](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.hatchpatterntable/purgeunused.md): Purges any unused hatch patterns.
- [Rename](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.hatchpatterntable/rename.md): (2 overloads) Renames a hatch pattern in the table.
- [ICollection<HatchPattern>.Add](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.hatchpatterntable/system-collections-generic-icollection-rhino-docobjects-hatchpattern-add.md)

## Inherited Members

- From [RhinoDocCommonTable<T>](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.rhinodoccommontable-1.md): [Document](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.rhinodoccommontable-1/document.md)
- From [CommonComponentTable<T>](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.commoncomponenttable-1.md): [Count](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.commoncomponenttable-1/count.md), [Clear](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.commoncomponenttable-1/clear.md), [FindId](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.commoncomponenttable-1/findid.md), [GetEnumerator](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.commoncomponenttable-1/getenumerator.md)
