NShape Reference
LayerController Class

<< Click to Display Table of Contents >>

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

NShape Reference
LayerController Class

Previous pageReturn to chapter overviewNext page

Provides methods and properties for managing layers of a diagram.

Syntax

public class LayerController : Component

Description

Public Properties

Name

Description

DiagramSetController

Provides access to a DiagramSetController.

ProductVersion

The version of the component.

Project

Provides read only access to the DiagramSetController's project.

Public Methods

Name

Description

AddLayer

Adds a new layer to the given diagram

Constructor

Constructs a new instance.

GetMenuItemDefs

Returns a list of MenuItemDefs.

RemoveLayer

Removes the indicated layer from the given diagram.

RemoveLayers

Removes the indicated layers from the given diagram.

RenameLayer

Renames the indicated layer.

SetLayerZoomBounds

Sets the zoom bounds for the indicated layer.

Events

Name

Description

DiagramChanged

Occurs when the diagram of the LayerController is going to change.

DiagramChanging

Occurs when the diagram of the LayerController has changed.

LayerModified

Occurs if a layer has been modified.

LayersAdded

Occurs if layers has been added.

LayersRemoved

Occurs if layers has been deleted.

Requirements

Namespace: Dataweb.NShape.Controllers

Assembly: Dataweb.NShape