CompoundStructure.SetLayerWidth
Description:
Sets the width of a specified layer.
Sets the width of a specified layer.
Remarks:
If the structure is vertically compound, and the layer is associated to a single simple region, the width of that region is adjusted. If layerIdx is 0 or LayerCount-1, and there is no associated region in the VerticalRegionsStructure, one will be created and associated to the layer. If the specified layer index is associated to a simple region, and the width is set to 0.0, that region will be deleted.
If the structure is vertically compound, and the layer is associated to a single simple region, the width of that region is adjusted. If layerIdx is 0 or LayerCount-1, and there is no associated region in the VerticalRegionsStructure, one will be created and associated to the layer. If the specified layer index is associated to a simple region, and the width is set to 0.0, that region will be deleted.
public void SetLayerWidth(
int layerIdx,
double width
)
-
Int32layerIdxIndex of a layer in the CompoundStructure.
-
DoublewidthThe new width of the specified layer.
-
The width of the layer is not valid.
-
The layer index is out of range.
-
If the region of the layer is not a simple region.