System.ComponentModel.Design.IComponentChangeService.OnComponentChanging Method

Announces to the component change service that a particular component is changing.

Syntax

public void OnComponentChanging (object component, System.ComponentModel.MemberDescriptor member)

Parameters

component
The component that is about to change.
member
The member that is changing. This is null if this change is not related to a single member.

Remarks

This method raises the IComponentChangeService.ComponentChanging event.

Most designers included with the winsdklong, as well as the Visual Studio design-time environment, typically raise this event automatically; so most of the time, you do not need to explicitly call this method. The appropriate System.ComponentModel.Design.IComponentChangeService events are automatically raised when a System.ComponentModel.PropertyDescriptor is used to change a property value or components are added or removed from the System.ComponentModel.Design.IDesignerHost container.

Requirements

Namespace: System.ComponentModel.Design
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0