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

Exception type Condition

EyeshotException

When the collection is assigned to an environment, thrown if the OpenBlock is not the RootBlock or if the CurrentBlockReference is different from null.

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.8

In this article

Definition