LayerKeyedCollection.Remove (String) Method

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

Parameters

layerName
string

The layer name

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