SwapLayers

bool SwapLayers(this CompoundStructure cs, int index1, int index2)

Swaps two layers by index.

Parameters

  • csCompoundStructure

    The compound structure.

  • index1int

    First index.

  • index2int

    Second index.

Returns: True if successful; otherwise false.

Example

cs.SwapLayers(0, 1);