RemoveLayer

bool RemoveLayer(this CompoundStructure cs, int layerIndex)

Removes a layer at a specific index.

Parameters

  • csCompoundStructure

    The compound structure.

  • layerIndexint

    Index of the layer to remove.

Returns: True if successful; otherwise false.

Example

cs.RemoveLayer(2);