NShape Reference
StyleModelMapping Class

<< Click to Display Table of Contents >>

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

NShape Reference
StyleModelMapping Class

Previous pageReturn to chapter overviewNext page

Maps model object property values to shape property values.

Syntax

public class StyleModelMapping : ModelMappingBase

Description

The StyleModelMapping stores a list of input values as float or integer and converts them to a style.

The defined range values are the upper bounds of a range beginning at the previous range value (or the minimum valid value of the type).

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

CanGetStyle

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

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. Returns always false.

EntityTypeName

Implementation of the IEntity.EntityTypeName pseudo member.

Indexer

Provides read only access to the defines values for the specified range value.

MappingType

Indicates the type of the mapping.

ValueRangeCount

The number of ranges defined for the mapping.

ValueRanges

Returns all defined range values.

Public Methods

Name

Description

AddValueRange

Adds a new value for the range's upper bound and a style associated with the range.

ClearValueRanges

Clears all value ranges.

Constructor

Constructs a new StyleModelMapping 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. Throws a NotSupportedException.

GetStyle

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

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. Throws a NotSupportedException.

Requirements

Namespace: Dataweb.NShape

Assembly: Dataweb.NShape