NShape Reference
IModelMapping Interface

<< Click to Display Table of Contents >>

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

NShape Reference
IModelMapping Interface

Previous pageReturn to chapter overviewNext page

Converts a property value from the model to a property value for the presentation.

Methods

Name

Description

Clone

Creates a copy of the property mapping.

ModelPropertyId

Defines the property of the model object.

ShapePropertyId

Defines the property of the shape object.

CanSetInt32

Indicates whether SetInt32 is supported.

CanSetFloat

Indicates whether SetFloat is supported.

CanSetString

Indicates whether SetString is supported.

SetInt32(int)

Sets an integer input value.

SetFloat(float)

Sets a float input value.

SetString(string)

Sets a string input value.

CanGetInt32

Indicates whether CanGetInt32 is supported.

CanGetFloat

Indicates whether CanGetFloat is supported.

CanGetString

Indicates whether CanGetString is supported.

GetInt32

Gets a converted integer value.

GetFloat

Gets a converted float value.

GetString

Gets a converted string value.

GetStyle

Gets a converted style.

Description

If a model value converter supports setting floats and strings for example and getting integers and floats, then it must support all conversions from the allowed input types to the allowed output types, i.e. float to integer, float to float, string to integer and string to float for the example.

Implementations

NumericModelMapping

FormattingModelMapping

StyleModelMapping

Requirements

Namespace: Dataweb.NShape.Advanced

Assembly: Dataweb.NShape