Click or drag to resize

HatchPatternTable Class

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

Namespace:  Rhino.DocObjects.Tables
Assembly:  RhinoCommon (in RhinoCommon.dll)
public sealed class HatchPatternTable : IEnumerable<HatchPattern>, 

The HatchPatternTable type exposes the following members.

Public propertyComponentType (Overrides CommonComponentTableTComponentType.)
Public propertyCount
Number of patterns in the table.

In Rhino for Windows 6.2, this member is inherited from CommonComponentTableTCount.
Public propertyCode exampleCurrentHatchPatternIndex
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.
Public propertyDocument
Document that owns this table.

In Rhino for Windows 6.2, this member is inherited from RhinoDocCommonTableTDocument.
Public propertyItem
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.
Public methodAdd
Adds a new hatch pattern with specified definition to the table.
Public methodClear
Marks all items as deleted.
(Inherited from CommonComponentTableT.)
Public methodDelete(HatchPattern) (Overrides CommonComponentTableTDelete(T).)
Public methodDelete(HatchPattern, Boolean)
Public methodEquals (Inherited from Object.)
Public methodCode exampleFind
Finds the hatch pattern with a given name. Search ignores case.
Public methodFindId
Uses the guid to find a model component. Deleted objects cannot be found by id. The guid is the value that is stored in the .Id property. In a single document, no two active objects have the same guid. If an object is replaced with a new object, then the guid persists. For example, if the _Move command moves an object, then the moved object inherits its guid from the starting object. If the Copy command copies an object, then the copy gets a new guid. This guid persists through file saving/openning operations. This function will not find grip objects.
(Inherited from CommonComponentTableT.)
Public methodFindIndex
Retrieves a HatchPattern object based on Index. This seach type of search is discouraged. We are moving towards using only IDs for all tables.
Public methodCode exampleFindName
Finds the hatch pattern with a given name. Search ignores case.
Public methodFindNameHash
Finds a HatchPattern given its name hash.
Public methodGetEnumerator

In Rhino for Windows 6.2, this member is inherited from CommonComponentTableTGetEnumerator.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodToString (Inherited from Object.)
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.2
See Also