NShape Reference
FormatModelMapping Class

<< Click to Display Table of Contents >>

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

NShape Reference
FormatModelMapping Class

Previous pageReturn to chapter overviewNext page

Maps model object property values to shape property values.

Syntax

public class FormatModelMapping : ModelMappingBase

Description

The FormatModelMapping stores an input value as float, integer or string and converts it to the given format.

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.

Format

.NET format specifier to use.

MappingType

Indicates the type of the mapping.

Public Methods

Name

Description

Constructor

Constructs a new FormatModelMapping instance.

GetFloat

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

GetInteger

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

GetPropertyDefinitions

Implementation of the IEntity.GetPropertyDefinitions pseudo member.

GetString

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

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.SaveInnerObjects.

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.

Requirements

Namespace: Dataweb.NShape.Advanced

Assembly: Dataweb.NShape