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

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