Click or drag to resize
LayerTableFind Method (Guid, Boolean)
Finds a layer with a matching ID.

Namespace: Rhino.DocObjects.Tables
Assembly: RhinoCommon (in RhinoCommon.dll) Version: 5.1.50000.0 (5.0.20693.0)
Syntax
public int Find(
	Guid layerId,
	bool ignoreDeletedLayers
)

Parameters

layerId
Type: SystemGuid
A valid layer ID.
ignoreDeletedLayers
Type: SystemBoolean
If true, deleted layers are not checked.

Return Value

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