RhinoCommon API
LayerTableFind Method (Guid, String, Boolean) |
Note: This API is now obsolete.
Finds a layer with a given name and matching parent ID.
Namespace: Rhino.DocObjects.Tables
Assembly: RhinoCommon (in RhinoCommon.dll)
[ObsoleteAttribute("ignoreDeletedLayers is no longer supported for research by name. Use the overload with notFoundReturnValue (-1 was the previous default).")] public int Find( Guid parentId, string layerName, bool ignoreDeletedLayers )
<ObsoleteAttribute("ignoreDeletedLayers is no longer supported for research by name. Use the overload with notFoundReturnValue (-1 was the previous default).")> Public Function Find ( parentId As Guid, layerName As String, ignoreDeletedLayers As Boolean ) As Integer
Parameters
- parentId
- Type: SystemGuid
A valid layer ID. - layerName
- Type: SystemString
name of layer to search for. The search ignores case. - ignoreDeletedLayers
- Type: SystemBoolean
If true, deleted layers are not checked. NOT SUPPORTED FOR NAME SEARCH, only for Guids.
Return Value
Type: Int32>=0 index of the layer with the given name -1 no layer has the given name.