Click or drag to resize
LayerTableDelete Method
Deletes layer.

Namespace: Rhino.DocObjects.Tables
Assembly: RhinoCommon (in RhinoCommon.dll) Version: 5.1.50000.0 (5.0.20693.0)
Syntax
public bool Delete(
	int layerIndex,
	bool quiet
)

Parameters

layerIndex
Type: SystemInt32
zero based index of layer to delete. This must be in the range 0 <= layerIndex < LayerTable.Count.
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: Boolean
true if successful. false if layerIndex is out of range or the the layer cannot be deleted because it is the current layer or because it layer contains active geometry.
See Also