NShape Reference
TemplateController Class

<< Click to Display Table of Contents >>

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

NShape Reference
TemplateController Class

Previous pageReturn to chapter overviewNext page

Provides methods and properties for editing templates.

Syntax

public class TemplateController : Component, IDisplayService

Description

Provides methods and properties for editing templates.

Public Properties

Name

Description

EditMode

Specifies the edit mode of the template controller.

IsInitialized

Indicates if the controller was initialized yet.

ModelObjects

Provides access to a list of registered model objects.

OriginalTemplate

The original template that is edited. Remains unchanged until applying changes.

ProductVersion

The version of the component.

Project

Specifies the diagramming project for the controller.

Shapes

Provides access to al list of registered shapes

WorkTemplate

A clone of the original template. This template will be modified. When applying the changes, it will be copied into the original template.

Public Methods

Name

Description

ApplyChanges

Applies all changes made on the working template to the original template.

Clear

Clears all buffers and objects used by the TemplateController

Constructor

Constructs a new instance.

DeleteModelMapping

Removes a model mapping from the template.

DiscardChanges

Discards all changes made to the working copy of the original template.

Initialize

Inititlizes the template controller.

NotifyTemplateModelObjectChanged

Notifies the TemplateController that the template's model object and therefore the template itself was changed.

NotyfyTemplateShapeChanged

Notifies the TemplateController that the template's shape and therefore the template itself was changed.

SetModelMapping

Defines a new model-to-shape property mapping.

SetTemplateDescription

Sets the template's descriptive text.

SetTemplateModel

Sets the template's model object.

SetTemplateName

Sets the template's language and culture independent name.

SetTemplateShape

Sets the template's shape.

SetTemplateTitle

Sets the template's title.

SetTerminalConnectionPointMapping

Defines a new connection point-to-terminal mapping

Events

Name

Description

ApplyingChanges

Occurs when changes are applied.

DiscardingChanges

Occurs when changes are discarded.

Initializing

Occurs when the controller is initializing.

TemplateModelObjectChanged

Occurs if the template's model object was replaced by another model object.

TemplateModelObjectModified

Occurs if the properties of the template's model object were modified.

TemplateModified

Occurs if the template's properties changed.

TemplateShapeChanged

Occurs if the template's shape was replaced by another shape.

TemplateShapeControlPointMappingChanged

Occurs if the ControlPointMapping of the template were changed.

TemplateShapeModified

Occurs if the properties of the template's shape were modified.

TemplateShapePropertyMappingDeleted

Occurs if a model-to-shape property mapping was deleted.

TemplateShapePropertyMappingSet

Occurs if a model-to-shape property mapping was added.

Protected Methods

Name

Description

Dispose

Implementation of Control.Dispose.

Requirements

Namespace: Dataweb.NShape.Controllers

Assembly: Dataweb.NShape