C# Класс ExoModel.ModelValueProperty

Represents a property that exposes strongly-typed data as leaves of a model hierarchy.
Наследование: ModelProperty
Показать файл Открыть проект

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
CoerceValue ( object value ) : object

Attempts to coerce the specific value into the appropriate object representation for the current property type.

FormatValue ( object value ) : string

Gets the formatted representation of a value based on the formatting rules defined for the current property.

FormatValue ( object value, string format ) : string

Gets the formatted representation of a value based on the formatting rules defined for the current property.

FormatValue ( object value, string format, IFormatProvider provider ) : string

Gets the formatted representation of a value based on the formatting rules defined for the current property.

GetDefaultValue ( ) : object

Gets the current default value for this property, or null if no default value has been specified.

Защищенные методы

Метод Описание
GetFormattedValue ( ModelInstance instance, string format ) : string

Gets the formatted value of the property for the specified instance.

GetFormattedValue ( ModelInstance instance, string format, IFormatProvider provider ) : string

Gets the formatted value of the property for the specified instance.

ModelValueProperty ( ModelType declaringType, string name, string label, string helptext, string format, bool isStatic, Type propertyType, TypeConverter converter, bool isList = false, bool isReadOnly = false, bool isPersisted = true, Attribute attributes = null, LambdaExpression defaultValue = null ) : System

Описание методов

CoerceValue() публичный Метод

Attempts to coerce the specific value into the appropriate object representation for the current property type.
public CoerceValue ( object value ) : object
value object
Результат object

FormatValue() публичный Метод

Gets the formatted representation of a value based on the formatting rules defined for the current property.
public FormatValue ( object value ) : string
value object The correct value type to format
Результат string

FormatValue() публичный Метод

Gets the formatted representation of a value based on the formatting rules defined for the current property.
public FormatValue ( object value, string format ) : string
value object The correct value type to format
format string The format specifier, or null to use the default property format
Результат string

FormatValue() публичный Метод

Gets the formatted representation of a value based on the formatting rules defined for the current property.
public FormatValue ( object value, string format, IFormatProvider provider ) : string
value object The correct value type to format
format string The format specifier, or null to use the default property format
provider IFormatProvider The format provider, or null to use the property's default format provider
Результат string

GetDefaultValue() публичный Метод

Gets the current default value for this property, or null if no default value has been specified.
public GetDefaultValue ( ) : object
Результат object

GetFormattedValue() защищенный Метод

Gets the formatted value of the property for the specified instance.
protected GetFormattedValue ( ModelInstance instance, string format ) : string
instance ModelInstance
format string
Результат string

GetFormattedValue() защищенный Метод

Gets the formatted value of the property for the specified instance.
protected GetFormattedValue ( ModelInstance instance, string format, IFormatProvider provider ) : string
instance ModelInstance
format string
provider IFormatProvider
Результат string

ModelValueProperty() защищенный Метод

protected ModelValueProperty ( ModelType declaringType, string name, string label, string helptext, string format, bool isStatic, Type propertyType, TypeConverter converter, bool isList = false, bool isReadOnly = false, bool isPersisted = true, Attribute attributes = null, LambdaExpression defaultValue = null ) : System
declaringType ModelType
name string
label string
helptext string
format string
isStatic bool
propertyType System.Type
converter System.ComponentModel.TypeConverter
isList bool
isReadOnly bool
isPersisted bool
attributes System.Attribute
defaultValue System.Linq.Expressions.LambdaExpression
Результат System