System.ComponentModel.Design.ComponentChangingEventArgs Class

Provides data for the IComponentChangeService.ComponentChanging event. This class cannot be inherited.

See Also: ComponentChangingEventArgs Members

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public sealed class ComponentChangingEventArgs : EventArgs

Remarks

System.ComponentModel.Design.ComponentChangingEventArgs provides data about a IComponentChangeService.ComponentChanging event. The IComponentChangeService.ComponentChanging event notifies the System.ComponentModel.Design.IComponentChangeService and registered event handlers that a particular component in the current design document is about to be changed. This event provides a widely accessible method to prevent a component from changing.

A IComponentChangeService.ComponentChanging event is raised before a component is changed. This event provides an opportunity for a designer to abort the change. Component designers typically raise the IComponentChangeService.ComponentChanging event automatically. If a property cannot be changed, the method that handles the event can throw an exception. For example, if a designer file is checked into source code control, the handler of this event typically throws an exception if the user refuses to check out the file.

A System.ComponentModel.Design.ComponentChangingEventArgs provides the following information:

Requirements

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