<< Click to Display Table of Contents >> NShape Reference
|
Removes the layer with the given name from the given diagram's layer collection.
public void RemoveLayer(Diagram diagram, string layerName) |
The layer is removed even if there are shapes in the diagram, which are visible within the given layer. Shapes that have been visible in the given layer only, are subsequently not assigned to any layer and therefore always visible.
Name |
Description |
---|---|
diagram |
Specifies the diagram to be edited. |
layerName |
Name of the layer to be removed. |
Exception |
Condition |
---|---|
ArgumentNullException |
Diagram is null. |