Click or drag to resize
MaterialTableFind Method (String, Boolean)
Finds a meterial with a given name.

Namespace: Rhino.DocObjects.Tables
Assembly: RhinoCommon (in RhinoCommon.dll) Version: 5.1.50000.0 (5.0.20693.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