Skip to content

PropertyList.PropertyValueChangedEventArgs

JaykeBird edited this page Feb 21, 2023 · 1 revision

Back to home | Back to Reference | View raw text

PropertyValueChangedEventArgs class

Description

The event arguments for the PropertyValueChanged event, which takes place when the value of a property is changed in a PropertyList.

Diagram

  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
Loading

Members

Properties

Public properties

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

Details

Summary

The event arguments for the PropertyValueChanged event, which takes place when the value of a property is changed in a PropertyList.

Inheritance

  • EventArgs

Constructors

PropertyValueChangedEventArgs [1/2]

public PropertyValueChangedEventArgs(object oldValue, object newValue, string propertyName, PropertyInfo propertyInfo)
Arguments
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.
Summary

Create a PropertyValueChangedEventArgs.

PropertyValueChangedEventArgs [2/2]

public PropertyValueChangedEventArgs(PropertyValueChangedEventArgs args)
Arguments
Type Name Description
PropertyValueChangedEventArgs args The class to copy the values from.
Summary

Create a PropertyValueChangedEventArgs, by copying the values of an existing PropertyValueChangedEventArgs class. Note that this isn't a deep copy.

Properties

NewValue

public object NewValue { get; }
Summary

Get the new value to apply to this property.

OldValue

public object OldValue { get; }
Summary

Get the old value of the property. Note that this may not always be set.

PropertyName

public string PropertyName { get; }
Summary

Get the name of the property being changed.

PropertyInfo

public PropertyInfo PropertyInfo { get; }
Summary

Get the PropertyInfo representing the property being changed.

Generated with ModularDoc

Clone this wiki locally