RhinoCommon API
LayerTableFind Method (Guid, String, Int32) |
Finds a layer with a given name and matching parent ID.
Namespace: Rhino.DocObjects.Tables
Assembly: RhinoCommon (in RhinoCommon.dll)
public int Find( Guid parentId, string layerName, int notFoundReturnValue )
Public Function Find ( parentId As Guid, layerName As String, notFoundReturnValue As Integer ) As Integer
Parameters
- parentId
- Type: SystemGuid
A valid layer ID. - layerName
- Type: SystemString
name of layer to search for. The search ignores case. - 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.