Redigera

Dela via


ComponentChangedEventArgs(Object, MemberDescriptor, Object, Object) Constructor

Definition

Initializes a new instance of the ComponentChangedEventArgs class.

public:
 ComponentChangedEventArgs(System::Object ^ component, System::ComponentModel::MemberDescriptor ^ member, System::Object ^ oldValue, System::Object ^ newValue);
public ComponentChangedEventArgs (object component, System.ComponentModel.MemberDescriptor member, object oldValue, object newValue);
public ComponentChangedEventArgs (object? component, System.ComponentModel.MemberDescriptor? member, object? oldValue, object? newValue);
new System.ComponentModel.Design.ComponentChangedEventArgs : obj * System.ComponentModel.MemberDescriptor * obj * obj -> System.ComponentModel.Design.ComponentChangedEventArgs
Public Sub New (component As Object, member As MemberDescriptor, oldValue As Object, newValue As Object)

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

See also