using System;
namespace Netron.Diagramming.Core {
///
/// Provides data for the GetValue and SetValue events of the custom descriptors.
///
public class PropertyEventArgs : EventArgs {
#region Fields
///
/// the mComponent of which the properties are examined
///
private object mComponent;
///
/// the value of the property
///
private object mValue;
///
/// the name of the property
///
private string mName;
#endregion
#region Properties
///
/// Gets or sets the mName of the property.
///
/// The mName.
public string Name {
get {
return mName;
}
set {
mName = value;
}
}
///
/// Gets or sets the current value of the property.
///
public object Value {
get { return mValue; }
set { mValue = value; }
}
///
/// Gets the component whose properties is examined
///
public object Component {
get {
return mComponent;
}
}
#endregion
#region Constructors
///
/// Initializes a new instance of the PropertyEventArgs class.
///
/// The m component.
/// The name of the property.
/// The value.
public PropertyEventArgs(object mComponent, string mName, object mValue) {
this.mComponent = mComponent;
this.mValue = mValue;
this.mName = mName;
}
#endregion
}
}