Click or drag to resize

MaterialTableFind Method (Guid, Boolean)

Finds a material with a matching id.

Namespace:  Rhino.DocObjects.Tables
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 5.0
Syntax
public int Find(
	Guid materialId,
	bool ignoreDeletedMaterials
)

Parameters

materialId
Type: SystemGuid
A material ID to be found.
ignoreDeletedMaterials
Type: SystemBoolean
If true, deleted materials are not checked.

Return Value

Type: Int32
>=0 index of the material with the given name -1 no material has the given name.
See Also