NShape Reference
IModelObject Interface

<< Click to Display Table of Contents >>

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

NShape Reference
IModelObject Interface

Previous pageReturn to chapter overviewNext page

Defines a model object.

Syntax

public interface IModelObject : ISecurityDomainObject

Description

Defines the interface for model objects. Usually, model objects are the business- or data objects of your application. Implement this interface on your application's objects and you will be able to visualize the property values of your objects with shapes by using ModelMappings.

Public Properties

Name

Description

Name

The name of the model object.

Parent

The model object's parent model object.

Shapes

Provides a list of shapes attached to this model object.

Type

The model object's ModelObjectType

Public Methods

Name

Description

AttachShape

Attaches a model object to a shape.

Clone

Creates a clone of the model object.

Connect

Connects the current model object to an other model object.

DetachShape

Detaches from a shape.

Disconnect

Disconnects from a connected model object.

GetFloat

Gets the float value of the float property with the given PropertyId (see PropertyMappingIdAttribute).

GetInteger

Gets the integer value of the integer property with the given PropertyId (see PropertyMappingIdAttribute).

GetMenuItemDefs

Returns menu item definitions provided by the model object.

GetString

Gets the string value of the string property with the given PropertyId (see PropertyMappingIdAttribute).

Requirements

Namespace: Dataweb.NShape.Advanced

Assembly: Dataweb.NShape