LayerKeyedCollection.Remove (Layer) Method

Removes the specified layer and all entities on it.
Public Shadows Sub Remove( _ 
ByVal layer As Layer
)
This language is not supported or no code example is available.
new public void Remove( 
Layer layer 
)
This language is not supported or no code example is available.

Parameters

layer
Layer

The layer

Remarks
 
It removes also entities on the specified layer inside the Environment.Blocks. If a block becomes empty after the removal of the entities on the layer, all the BlockReferences referring to it are removed as well.

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition