Provides data for the System.ComponentModel.Design.ComponentChangingEvent event.
Object
EventArgs
ComponentChangingEventArgs
[Visual Basic] NotInheritable Public Class ComponentChangingEventArgs Inherits EventArgs [C#] public sealed class ComponentChangingEventArgs : EventArgs [C++] public __gc __sealed class ComponentChangingEventArgs : public EventArgs [JScript] public class ComponentChangingEventArgs extends EventArgs
A ComponentChangingEventArgs is raised before the component is actually changed and gives a designer the chance to abort the change. Generally, only the top-level designer cares about such change requests.
The System.ComponentModel.Design.ComponentChangingEventArgs.ComponentChangingEvent event notifies the component change service that a particular component in the document is about to be changed.
The framework typically calls this method for you. In general, you don't need to explicitly call it.
If a property cannot be changed, a method should throw an exception. This class is not intended to validate the values of a particular property. Instead, it is intended to be a global way to prevent a component from changing. For example, if a designer file is checked into source code control, this would typically throw an exception if the user refused to check out the file.
Notes to Inheritors: An error occurs if this class is specified as the base class of another class.
Namespace: System.ComponentModel.Design
Assembly: System.dll
ComponentChangingEventArgs Members | System.ComponentModel.Design Namespace | ComponentChangingEventHandler | System.ComponentModel.Design.ComponentChangedEvent