System [00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00] 1.0.3300.0 1.0.5000.0 2.0.0.0 4.0.0.0 Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details. System.Runtime.InteropServices.ComVisible(true)

provides an interface that can be used to indicate the methods that handle the following events:

, raised when a component is added.

, raised when a component is about to be added.

, raised when a component is changed.

, raised when a component is about to be changed.

, raised when a component is removed.

, raised when a component is about to be removed.

, raised when a component is renamed.

Typically, the design environment raises these component add, change, remove, or rename events. Designers should call the methods of this interface when using objects to provide undo and redo functionality for design-time actions that affect components. More information is available in the documentation for . Generally, only the root designer handles these change notifications.

This service also provides methods that raise a component changed event or component changing event. A or a component can indicate that a component has changed or is changing with the and methods, respectively.

Provides an interface to add and remove the event handlers for events that add, change, remove or rename components, and provides methods to raise a or event.

- Event
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.ComponentModel.Design.ComponentEventHandler

  This event occurs during load and when new components are created by the user, after the component has been sited.

  Occurs when a component has been added.

- Event
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.ComponentModel.Design.ComponentEventHandler

  This event occurs during load and when the user creates a new component. You can cancel the process of adding a component by throwing an exception here.

  Occurs when a component is in the process of being added.

- Event
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.ComponentModel.Design.ComponentChangedEventHandler

  This event occurs when any component on the form changes. This event will not occur during form load and unload, because changes are expected at this time.

  A can raise multiple events. Some event handlers can interfere with expected sequences of events, such as if your code alters the values of properties while a transaction is occurring. A event handler can also impair performance if it draws after each change while a is in progress. In order to allow a in process to complete without interruption or interference by your event handler, you can test the state of the property, and defer handling the change events until the completion of the transaction by adding a which will raise your event handler and remove itself upon completion of the transaction.

  Occurs when a component has been changed.

- Event
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.ComponentModel.Design.ComponentChangingEventHandler

  This event occurs before the component is actually changed, and gives the designer a chance to abort the change or perform any pre-change processing. This event does not occur during form load and unload, because changes are expected at this time.

  Occurs when a component is in the process of being changed.

- Event
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.ComponentModel.Design.ComponentEventHandler

  This event occurs during unload and when a component is deleted by the user. The event occurs before the site has been removed from the component.

  Occurs when a component has been removed.

- Event
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.ComponentModel.Design.ComponentEventHandler

  This event occurs during unload and when the user deletes a component. You can cancel the process of removing a component by throwing an exception here.

  Occurs when a component is in the process of being removed.

- Event
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.ComponentModel.Design.ComponentRenameEventHandler

  This event occurs after the event when a component has been renamed.

  Occurs when a component is renamed.

- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Void `` `` `` ``

  This method raises the event.

  Most designers that ship with the winsdklong, as well as the Visual Studio design-time environment, typically raise this event for you when a component in a project is changed, so most of the time you do not need to explicitly call this method. The appropriate events are automatically raised when a is used to change a property value or components are added or removed from the container.

  Before calling , first call to indicate that a component is about to change, and make the change. Then call to raise the event.

  Announces to the component change service that a particular component has changed.

  The component that has changed. The member that has changed. This is null if this change is not related to a single member. The old value of the member. This is valid only if the member is not null. The new value of the member. This is valid only if the member is not null.
- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Void `` ``

  This method raises the 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 events are automatically raised when a is used to change a property value or components are added or removed from the container.

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

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