NShape Reference
Items Property

<< Click to Display Table of Contents >>

Navigation:  Class Reference > Namespace Dataweb.NShape.Advanced > ILayerCollection Interface >

NShape Reference
Items Property

Previous pageReturn to chapter overviewNext page

Returns the layer with the given name or id.

Syntax

public Layer this[string name]
public Layer this[LayerIds layerId]

Description

Returns the layer with the given name or id. Throws an ItemNotFoundException<Layer> if not found.

Parameters

Name

Description

name

Name of the layer to find.

Exceptions

Exception

Condition

ArgumentNullException

Parameter name is null or empty.

ItemNotFoundException<Layer>

Layer with the specified name/id was not found in the collection.

ArgumentException

Parameter layerId is a combination of multiple LayerIds values.