PropertyInterface
Nectunia.PropertyInterface.PropertyValue Class Reference

Detailed Description

Manage a Property value.

Properties

object Value [get, set]
 
Tag.ValueType ValueType [get, set]
 
Property.SourceType SourceType [get, set]
 
Component Component [get, set]
 
Type ComponentType [get]
 
PropertyInfo SourceProperty [get]
 
FieldInfo SourceField [get]
 
string Source [get, set]
 
bool IsReadOnly [get]
 
TypedValue TypedValue [get, set]
 

Public Member Functions

void RefreshValueObject ()
 Refresh the object value with the serializedValue More...
 
System.Object GetDefaultValue ()
 Get the default value for current valuesType More...
 
void SynchronizeValue ()
 Synchronize the value and it's source More...
 

Protected Member Functions

void ResetComponent (Component newComponent=null)
 Reset the component More...
 
void ResetSource ()
 Reset the source More...
 
void ResetValue ()
 Reset the value More...
 
bool SynchronizeValue_PropertyInfo ()
 Try to synchronize the value with the passed PropertyInfo More...
 
bool SynchronizeValue_FieldInfo ()
 Try to synchronize the value with the passed FieldInfo More...
 

Property Documentation

◆ Component

Component Nectunia.PropertyInterface.PropertyValue.Component
getset

◆ ComponentType

Type Nectunia.PropertyInterface.PropertyValue.ComponentType
get

◆ IsReadOnly

bool Nectunia.PropertyInterface.PropertyValue.IsReadOnly
get

◆ Source

string Nectunia.PropertyInterface.PropertyValue.Source
getset

◆ SourceField

FieldInfo Nectunia.PropertyInterface.PropertyValue.SourceField
get

◆ SourceProperty

PropertyInfo Nectunia.PropertyInterface.PropertyValue.SourceProperty
get

◆ SourceType

Property.SourceType Nectunia.PropertyInterface.PropertyValue.SourceType
getset

◆ TypedValue

TypedValue Nectunia.PropertyInterface.PropertyValue.TypedValue
getset

◆ Value

object Nectunia.PropertyInterface.PropertyValue.Value
getset

◆ ValueType

Tag.ValueType Nectunia.PropertyInterface.PropertyValue.ValueType
getset

Member Function Documentation

◆ GetDefaultValue()

System.Object Nectunia.PropertyInterface.PropertyValue.GetDefaultValue ( )

Get the default value for current valuesType

Returns
The default value

◆ RefreshValueObject()

void Nectunia.PropertyInterface.PropertyValue.RefreshValueObject ( )

Refresh the object value with the serializedValue

◆ ResetComponent()

void Nectunia.PropertyInterface.PropertyValue.ResetComponent ( Component  newComponent = null)
protected

Reset the component

◆ ResetSource()

void Nectunia.PropertyInterface.PropertyValue.ResetSource ( )
protected

Reset the source

◆ ResetValue()

void Nectunia.PropertyInterface.PropertyValue.ResetValue ( )
protected

Reset the value

◆ SynchronizeValue()

void Nectunia.PropertyInterface.PropertyValue.SynchronizeValue ( )

Synchronize the value and it's source

◆ SynchronizeValue_FieldInfo()

bool Nectunia.PropertyInterface.PropertyValue.SynchronizeValue_FieldInfo ( )
protected

Try to synchronize the value with the passed FieldInfo

Parameters
fieldInfoThe FieldInfo wich will try to synchronize with the value
Returns
True if the FieldInfo is not null, False otherwise

◆ SynchronizeValue_PropertyInfo()

bool Nectunia.PropertyInterface.PropertyValue.SynchronizeValue_PropertyInfo ( )
protected

Try to synchronize the value with the passed PropertyInfo

Parameters
propertyInfoThe PropertyInfo wich will try to synchronize with the value
Returns
True if the PropertyInfo is not null, False otherwise