RhinoCommon API
LayerTableFind Method (Guid, Boolean, Int32) |
Finds a layer with a matching ID.
Namespace: Rhino.DocObjects.Tables
Assembly: RhinoCommon (in RhinoCommon.dll)
public int Find( Guid layerId, bool ignoreDeletedLayers, int notFoundReturnValue )
Public Function Find ( layerId As Guid, ignoreDeletedLayers As Boolean, notFoundReturnValue As Integer ) As Integer
Parameters
- layerId
- Type: SystemGuid
A valid layer ID. - ignoreDeletedLayers
- Type: SystemBoolean
If true, deleted layers are not checked. - notFoundReturnValue
- Type: SystemInt32
Should be -1 to get the index of the OpenNURBS default layer, or UnsetIntIndex to get an always-out-of-bound value.
Return Value
Type: Int32The index of the found layer, or notFoundReturnValue.