RhinoCommon API
LayerTableFind Method (Guid, Boolean) |
Finds a layer with a matching ID.
Namespace: Rhino.DocObjects.Tables
Assembly: RhinoCommon (in RhinoCommon.dll)
public int Find( Guid layerId, bool ignoreDeletedLayers )
Public Function Find ( layerId As Guid, ignoreDeletedLayers As Boolean ) As Integer
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.