LayerKeyedCollection.Empty (Int32) Method

Removes all the entities on the specified layer.
Public Sub Empty( _ 
ByVal layerIndex As Integer
)
This language is not supported or no code example is available.
public void Empty( 
int layerIndex 
)
This language is not supported or no code example is available.

Parameters

layerIndex
int

The layer index

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