Click or drag to resize

MaterialTableFind Method (String, Boolean)

Finds a material with a given name.

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

Parameters

materialName
Type: SystemString
Name of the material to search for. The search ignores case.
ignoreDeletedMaterials
Type: SystemBoolean
true means don't search deleted materials.

Return Value

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