-
Notifications
You must be signed in to change notification settings - Fork 3
PropertyList.PropertyValueChangedEventArgs
JaykeBird edited this page Feb 21, 2023
·
1 revision
Back to home | Back to Reference | View raw text
The event arguments for the PropertyValueChanged event, which takes place when the value of a property is changed in a PropertyList.
flowchart LR
classDef interfaceStyle stroke-dasharray: 5 5;
classDef abstractStyle stroke-width:4px
subgraph SolidShineUi.PropertyList
SolidShineUi.PropertyList.PropertyValueChangedEventArgs[[PropertyValueChangedEventArgs]]
end
subgraph System
System.EventArgs[[EventArgs]]
end
System.EventArgs --> SolidShineUi.PropertyList.PropertyValueChangedEventArgs
Type | Name | Methods |
---|---|---|
object |
NewValue Get the new value to apply to this property. |
get |
object |
OldValue Get the old value of the property. Note that this may not always be set. |
get |
PropertyInfo |
PropertyInfo Get the PropertyInfo representing the property being changed. |
get |
string |
PropertyName Get the name of the property being changed. |
get |
The event arguments for the PropertyValueChanged event, which takes place when the value of a property is changed in a PropertyList.
EventArgs
public PropertyValueChangedEventArgs(object oldValue, object newValue, string propertyName, PropertyInfo propertyInfo)
Type | Name | Description |
---|---|---|
object |
oldValue | The old value of the property being changed. |
object |
newValue | The new value of the property being changed. |
string |
propertyName | The name of the property being changed. |
PropertyInfo |
propertyInfo | The PropertyInfo representing the property being changed. |
Create a PropertyValueChangedEventArgs.
public PropertyValueChangedEventArgs(PropertyValueChangedEventArgs args)
Type | Name | Description |
---|---|---|
PropertyValueChangedEventArgs |
args | The class to copy the values from. |
Create a PropertyValueChangedEventArgs, by copying the values of an existing PropertyValueChangedEventArgs class. Note that this isn't a deep copy.
public object NewValue { get; }
Get the new value to apply to this property.
public object OldValue { get; }
Get the old value of the property. Note that this may not always be set.
public string PropertyName { get; }
Get the name of the property being changed.
public PropertyInfo PropertyInfo { get; }
Get the PropertyInfo representing the property being changed.
Generated with ModularDoc