NShape Reference
Diagram.RemoveShapeFromLayers Method

<< Click to Display Table of Contents >>

Navigation:  Class Reference > Namespace Dataweb.NShape > Diagram Class >

NShape Reference
Diagram.RemoveShapeFromLayers Method

Previous pageReturn to chapter overviewNext page

Makes the shape invisible within the given layer.

Syntax

public void RemoveShapeFromLayers(Shape shape, LayerIds layerId)

Description

The function assumes that the shape is part of the diagram and that the diagram includes a layer with the given id. If the layer does not exist, an exception is thrown. If the shape is not in the diagram, the result is unspecified. If the shape is currently not in the given layer, nothing happens.