NShape Reference
NumericModelMapping Class

<< Click to Display Table of Contents >>

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

NShape Reference
NumericModelMapping Class

Previous pageReturn to chapter overviewNext page

Maps model object property values to shape property values.

Syntax

public class NumericModelMapping : ModelMappingBase

Description

The NumericModelMapping stores the input value as float or integer and calculates an output value as float. When the result is queried as an integer, it is rounded in the usual way.

Public Properties

Name

Description

CanGetFloat

Indicates wether the mapped model object property can be converted to a float value. Returns always false.

CanGetInteger

Indicates wether the mapped model object property can be converted to an integer value. Returns always false.

CanGetString

Indicates wether the mapped model object property can be converted to a string value. Returns always true.

CanGetStyle

Indicates wether the mapped model object property can be converted to a style. Returns always false.

CanSetFloat

Indicates wether a float value can be converted to the mapped shape property.

CanSetInteger

Indicates wether an integer value can be converted to the mapped shape property.

CanSetString

Indicates wether a string value can be converted to the mapped shape property.

EntityTypeName

Implementation of the IEntity.EntityTypeName pseudo member.

Intercept

Defines an offset for the mapping.

MappingType

Indicates the type of the mapping.

Slope

Defines a factor for the mapping.

Public Methods

Name

Description

Constructor

Constructs a new NumericModelMapping instance.

GetFloat

Gets a float value converted from the mapped model object's property value.

GetInteger

Gets an integer value converted from the mapped model object's property value.

GetPropertyDefinitions

Implementation of the IEntity.GetPropertyDefinitions pseudo member.

GetString

Gets a string value converted from the mapped model object's property value. Throws a NotSupportedException.

GetStyle

Gets a style converted from the mapped model object's property value. Throws a NotSupportedException.

LoadFields

Implementation of IEntity.LoadFields.

LoadInnerObjects

Implementation of IEntity.LoadInnerObjects.

RemoveValueRange

Removes the given value range and its associated style.

SaveFields

Implementation of IEntity.SaveFields.

SaveInnerObjects

Implementation of IEntity.SaveInnerObjectsInnerObjects.

SetFloat

Sets the float value to be converted to the mapped shape's property.

SetInteger

Sets the integer value to be converted to the mapped shape's property.

SetString

Sets the string value to be converted to the mapped shape's property. Throws a NotSupportedException.

Requirements

Namespace: Dataweb.NShape

Assembly: Dataweb.NShape