NShape Reference

ModelController Class

<< Click to Display Table of Contents >>

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

NShape Reference

ModelController Class

Previous pageReturn to chapter overviewNext page

Provides methods and properties for managing the model.

Syntax

public class ModelController : Component

Description

The model controller is responsible for all operations that a user can perform directly on the model.

Public Properties

Name

Description

DiagramSetController

Provides access to a DiagramSetController. If a DiagramSetController is set, the DiagramSetController's project is used.

ProductVersion

The version of the component.

Project

Provides access to an NShape project. Can only be set if no DiagramSetController was set yet.

Public Methods

Name

Description

Copy

Copies the given model object.

Constructor

Constructs a new instance.

CreateModelObject

Creates a new model object.

DeleteModelObjects

Deletes the given model objects.

FindShapes

Selects all shapes assigned with the given model objects.

GetChildModelObjects

Returns all model objects whose parent is the given model object.

GetMenuItemDefs

Returns a list of MenuItemDefs.

Paste

Paste the given model object into the model.

RenameModelObject

Renames a model object.

SetModelObjectParent

Sets the given model object's parent.

Events

Name

Description

Changed

The Changed event will be raised whenever an object somehow related to a model object has changed.

Initialized

Occurs when the model controller has a project and the project is open.

ModelObjectsChanged

Occurs when model objects have been changed.

ModelObjectsCreated

Occurs when model objects have been created.

ModelObjectsDeleted

Occurs when model objects have been deleted.

Uninitialized

Occurs when the project is removed or closed.

Requirements

Namespace: Dataweb.NShape.Controllers

Assembly: Dataweb.NShape