NShape Reference
DiagramController Class

<< Click to Display Table of Contents >>

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

NShape Reference
DiagramController Class

Previous pageReturn to chapter overviewNext page

Manages a diagram.

Syntax

public class DiagramController

Description

Manages a diagram.

Public Properties

Name

Description

Diagram

The diagram that is managed by this DiagramController.

Owner

The DiagramSetController that owns this DiagramController.

Project

Provides access to the owners Project.

Tool

Provides Access to the owner's ActiveTool.

Public Methods

Name

Description

Constructor

Constructs a new instance.

CreateDiagram

Creates a new diagram with the given name and inserts it to the project's repository.

GetMenuItemDefs

Returns a list of MenuItemDefs.

OpenDiagram

Loads the diagram with the given name from the project's repository.

Events

Name

Description

DiagramChanged

Occurs when the diagram has been changed.

DiagramChaging

Occurs when the diagram is going to be changed.

Requirements

Namespace: Dataweb.NShape.Controllers

Assembly: Dataweb.NShape