Click or drag to resize

ValuePropertyFormatter Class

The class contains formatting details for properties according to those defined for a value property. It is used to format the value into a string representation. The purpose is the seperate the formatting from ValueProperty class since the formatting details sometimes are overridden from the ValueProperty definition, for instance in view fields.
Inheritance Hierarchy
SystemObject
  Omada.OE.ModelPropertyFormatterBase
    Omada.OE.ModelValuePropertyFormatter

Namespace:  Omada.OE.Model
Assembly:  Omada.OE.Model (in Omada.OE.Model.dll) Version: 15.0.0.0
Syntax
C#
[SerializableAttribute]
public class ValuePropertyFormatter : PropertyFormatterBase

The ValuePropertyFormatter type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyBoolFalseValue
Used if DataType is Boolean. Can be null.
Public propertyBoolTrueValue
Used if DataType is Boolean. Can be null.
Public propertyDataType
datatype for the value property
Public propertyDateTimeFormat
Used if DataType is DateTime.
Public propertyForInputField
Angiver om den formatterede værdi skal anvendes i et input felt.
(Inherited from PropertyFormatterBase.)
Public propertyNullValue
Denne værdi returneres hvis værdien, der skal formatteres, er null.
(Inherited from PropertyFormatterBase.)
Public propertyNumericFormat
Used if DataType is Integer or Decimal.
Public propertyNumericPrecision
Used if DataType is Integer or Decimal.
Public propertyTimeSpanFormat
Used if DataType is TimeSpan.
Top
Methods
Extension Methods
  NameDescription
Public Extension MethodToBool
Converts object to boolean.
(Defined by ObjectExtensions.)
Public Extension MethodToDateTime
Converts object to DateTime.
(Defined by ObjectExtensions.)
Public Extension MethodToInt
Converts object to integer.
(Defined by ObjectExtensions.)
Top
See Also