C# 클래스 ExoModel.ModelValueProperty

Represents a property that exposes strongly-typed data as leaves of a model hierarchy.
상속: ModelProperty
파일 보기 프로젝트 열기: vc3/ExoModel

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