NShape Reference
Diagram.AddShapeToLayers Method

<< Click to Display Table of Contents >>

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

NShape Reference
Diagram.AddShapeToLayers Method

Previous pageReturn to chapter overviewNext page

Makes the shape visible within the given layer(s).

Syntax

Obsolete since NShape 2.3

public void AddShapeToLayers(Shape shape, LayerIds layerId)

Available since NShape 2.3

public void AddShapeToLayers(Shape shape, int homeLayer)

public void AddShapeToLayers(Shape shape, int homeLayer, LayerIds supplementalLayers)

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 already in the layer, nothing happens.