ActiveDesignerEventHandler Delegate

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Represents the method that will handle the ActiveDesignerChanged event.

Namespace:   System.ComponentModel.Design
Assembly:  System (in System.dll)

[<HostProtectionAttribute(SecurityAction.LinkDemand, SharedState = true)>]
type ActiveDesignerEventHandler = 
    delegate of 
        sender:Object *
        e:ActiveDesignerEventArgs -> unit

Parameters

sender
Type: System.Object

The source of the event.

e
Type: System.ComponentModel.Design.ActiveDesignerEventArgs

An ActiveDesignerEventArgs that contains the event data.

The ActiveDesignerChanged event is raised when the currently active document has been modified.

When you create an ActiveDesignerEventHandler delegate, you identify the method that will handle the event. To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate. For more information about event-handler delegates, see NIB: Events and Delegates.

The following example demonstrates registering an ActiveDesignerEventHandler and handling an ActiveDesignerChanged event.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: