SetLayers

bool SetLayers(this CompoundStructure cs, IList<CompoundStructureLayer> newLayers)

Clears all layers and sets new ones.

Parameters

  • csCompoundStructure

    The compound structure.

  • newLayersIList<CompoundStructureLayer>

    New layer stack (must be non-empty).

Returns: True if successful; otherwise false.

Example

cs.SetLayers(new List<CompoundStructureLayer> { layer1, layer2 });