MaterialRefs.Add Method (Guid, MaterialRef)

MaterialRefsAdd Method (Guid, MaterialRef)

Add or replace an element with the provided key and value to this dictionary.

Namespace:  Rhino.DocObjects
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public void Add(
	Guid key,
	MaterialRef value
)
Public Sub Add ( 
	key As Guid,
	value As MaterialRef
)

Parameters

key
Type: SystemGuid
The plug-in associated with this MaterialRef
value
Type: Rhino.DocObjectsMaterialRef
MaterialRef to add to this dictionary

Implements

IDictionaryTKey, TValueAdd(TKey, TValue)
Exceptions
ExceptionCondition
ArgumentNullException value is null.
ArgumentException key is empty.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.14
See Also