NShape Reference
ModelController.CreateModelObject Method

<< Click to Display Table of Contents >>

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

NShape Reference
ModelController.CreateModelObject Method

Previous pageReturn to chapter overviewNext page

Creates a new model object and selects it.

Syntax

public void CreateModelObject(IModelObject parent)

Description

The model controller generates a command for creating a model object and executes it against the project. If it succeeds it clears the selection and selects the new model object.

Parameters

Name

Description

parent

Parent of the new model object. Null if the new model object is a root object.

Exceptions

See IRepository.InsertModelObject.