NShape Reference
ILayerCollection Interface

<< Click to Display Table of Contents >>

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

NShape Reference
ILayerCollection Interface

Previous pageReturn to chapter overviewNext page

Manages a collection of diagram layers.

Syntax

public interface ILayerCollection : ICollection<Layer>

Description

Manages a collection of diagram layers.

Public Properties

Name

Description

Item

Indexed access via name or LayerIds.

Count

Returns the number of elements in the collection.

IsReadOnly

Returns false.

Public Methods

Name

Description

Add

Adds a layer to the collection. Inherited from ICollection<Layer>.

Clear

Removes all layers. Inherited from ICollection<Layer>.

Contains

Returns true if the collection contains the given layer. Inherited from ICollection<Layer>.

CopyTo

Copies all elements of the collection to the given array. Inherited from ICollection<Layer>.

FindLayer

Finds a layer given its name.

GetEnumerator

Returns an enumerator that iterates through the collection. Inherited from ICollection<Layer>.

GetLayer

Returns a layer given its id.

GetLayers

Returns all layers given their id's.

Remove

Removes a layer from the collection. Inherited from ICollection<Layer>.

RenameLayer

Renames a layer.

Requirements

Namespace: Dataweb.NShape

Assembly: Dataweb.NShape.dll