RhinoCommon API
LayerTableDelete Method (Layer, Boolean) |
Deletes layer.
Namespace: Rhino.DocObjects.Tables
Assembly: RhinoCommon (in RhinoCommon.dll)
Since: 6.0
public bool Delete( Layer layer, bool quiet )
Public Function Delete ( layer As Layer, quiet As Boolean ) As Boolean
Parameters
- layer
- Type: Rhino.DocObjectsLayer
Layer to be deleted. - quiet
- Type: SystemBoolean
If true, no warning message box appears if a layer the layer cannot be deleted because it is the current layer or it contains active geometry.
Return Value
Type: Booleantrue if successful. false if layerIndex is out of range or the layer cannot be deleted because it is the current layer or because it layer contains active geometry.