ComponentChangedEventArgs(Object, MemberDescriptor, Object, Object) Constructor

Definition

Initializes a new instance of the ComponentChangedEventArgs class.

C#
public ComponentChangedEventArgs(object component, System.ComponentModel.MemberDescriptor member, object oldValue, object newValue);
C#
public ComponentChangedEventArgs(object? component, System.ComponentModel.MemberDescriptor? member, object? oldValue, object? newValue);

Parameters

component
Object

The component that was changed.

member
MemberDescriptor

A MemberDescriptor that represents the member that was changed.

oldValue
Object

The old value of the changed member.

newValue
Object

The new value of the changed member.

Remarks

The designer for a component calls this constructor after it has changed a property of the component. This ensures that the Properties window will display the property's updated value.

Applies to

Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

See also