Adds a new hatch pattern with specified definition to the table.

Namespace: Rhino.DocObjects.Tables
Assembly: RhinoCommon (in RhinoCommon.dll) Version: 5.1.30000.5 (5.0.20693.0)

Syntax

C#
public int Add(
	HatchPattern pattern
)
Visual Basic
Public Function Add ( _
	pattern As HatchPattern _
) As Integer

Parameters

pattern
Type: Rhino.DocObjects..::..HatchPattern
definition of new hatch pattern. The information in pattern is copied. If patern.Name is empty the a unique name of the form "HatchPattern 01" will be automatically created.

Return Value

>=0 index of new hatch pattern -1 not added because a hatch pattern with that name already exists or some other problem occured.

See Also