Свойство | Тип | Описание | |
---|---|---|---|
ExtenderCanResetValue | bool | ||
ExtenderGetReceiverType | Type | ||
ExtenderGetType | Type | ||
ExtenderGetValue | object | ||
ExtenderResetValue | void | ||
ExtenderSetValue | void | ||
ExtenderShouldSerializeValue | bool | ||
OnINotifyPropertyChanged | void |
Метод | Описание | |
---|---|---|
AddValueChanged ( object component, EventHandler handler ) : void |
Allows interested objects to be notified when this property changes.
|
|
CanResetValue ( object component ) : bool |
Indicates whether reset will change the value of the component. If there is a DefaultValueAttribute, then this will return true if getValue returns something different than the default value. If there is a reset method and a ShouldSerialize method, this will return what ShouldSerialize returns. If there is just a reset method, this always returns true. If none of these cases apply, this returns false.
|
|
GetValue ( object component ) : object |
Retrieves the current value of the property on component, invoking the getXXX method. An exception in the getXXX method will pass through.
|
|
ReflectPropertyDescriptor ( Type componentClass, |
This constructor takes an existing ReflectPropertyDescriptor and modifies it by merging in the passed-in attributes.
|
|
ReflectPropertyDescriptor ( Type componentClass, string name, Type type, Attribute attributes ) : System.Collections |
The main constructor for ReflectPropertyDescriptors.
|
|
ReflectPropertyDescriptor ( Type componentClass, string name, Type type, |
A constructor for ReflectPropertyDescriptors that have no attributes.
|
|
ReflectPropertyDescriptor ( Type componentClass, string name, Type type, Type receiverType, |
A constructor for ReflectPropertyDescriptors that creates an extender property.
|
|
RemoveValueChanged ( object component, EventHandler handler ) : void |
Allows interested objects to be notified when this property changes.
|
|
ResetValue ( object component ) : void |
Will reset the default value for this property on the component. If there was a default value passed in as a DefaultValueAttribute, that value will be set as the value of the property on the component. If there was no default value passed in, a ResetXXX method will be looked for. If one is found, it will be invoked. If one is not found, this is a nop.
|
|
SetValue ( object component, object value ) : void |
This will set value to be the new value of this property on the component by invoking the setXXX method on the component. If the value specified is invalid, the component should throw an exception which will be passed up. The component designer should design the property so that getXXX following a setXXX should return the value passed in if no exception was thrown in the setXXX call.
|
|
ShouldSerializeValue ( object component ) : bool |
Indicates whether the value of this property needs to be persisted. In other words, it indicates whether the state of the property is distinct from when the component is first instantiated. If there is a default value specified in this ReflectPropertyDescriptor, it will be compared against the property's current value to determine this. If there is't, the ShouldSerializeXXX method is looked for and invoked if found. If both these routes fail, true will be returned. If this returns false, a tool should not persist this property's value.
|
Метод | Описание | |
---|---|---|
FillAttributes ( IList attributes ) : void | ||
OnValueChanged ( object component, EventArgs e ) : void |
This should be called by your property descriptor implementation when the property value has changed.
|
Метод | Описание | |
---|---|---|
ExtenderCanResetValue ( IExtenderProvider provider, object component ) : bool | ||
ExtenderGetReceiverType ( ) : Type | ||
ExtenderGetType ( IExtenderProvider provider ) : Type | ||
ExtenderGetValue ( IExtenderProvider provider, object component ) : object | ||
ExtenderResetValue ( IExtenderProvider provider, object component, |
||
ExtenderSetValue ( IExtenderProvider provider, object component, object value, |
||
ExtenderShouldSerializeValue ( IExtenderProvider provider, object component ) : bool | ||
OnINotifyPropertyChanged ( object component, |
Handles INotifyPropertyChanged.PropertyChange events from components. If event pertains to this property, issue a ValueChanged event.
|
public AddValueChanged ( object component, EventHandler handler ) : void | ||
component | object | |
handler | EventHandler | |
Результат | void |
public CanResetValue ( object component ) : bool | ||
component | object | |
Результат | bool |
protected FillAttributes ( IList attributes ) : void | ||
attributes | IList | |
Результат | void |
public GetValue ( object component ) : object | ||
component | object | |
Результат | object |
protected OnValueChanged ( object component, EventArgs e ) : void | ||
component | object | |
e | EventArgs | |
Результат | void |
public ReflectPropertyDescriptor ( Type componentClass, |
||
componentClass | Type | |
oldReflectPropertyDescriptor | ||
attributes | Attribute | |
Результат | System.Collections |
public ReflectPropertyDescriptor ( Type componentClass, string name, Type type, Attribute attributes ) : System.Collections | ||
componentClass | Type | |
name | string | |
type | Type | |
attributes | Attribute | |
Результат | System.Collections |
public ReflectPropertyDescriptor ( Type componentClass, string name, Type type, |
||
componentClass | Type | |
name | string | |
type | Type | |
propInfo | ||
getMethod | ||
setMethod | ||
attrs | Attribute | |
Результат | System.Collections |
public ReflectPropertyDescriptor ( Type componentClass, string name, Type type, Type receiverType, |
||
componentClass | Type | |
name | string | |
type | Type | |
receiverType | Type | |
getMethod | ||
setMethod | ||
attrs | Attribute | |
Результат | System.Collections |
public RemoveValueChanged ( object component, EventHandler handler ) : void | ||
component | object | |
handler | EventHandler | |
Результат | void |
public ResetValue ( object component ) : void | ||
component | object | |
Результат | void |
public SetValue ( object component, object value ) : void | ||
component | object | |
value | object | |
Результат | void |
public ShouldSerializeValue ( object component ) : bool | ||
component | object | |
Результат | bool |