Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

interface System.​ComponentModel.​Design.​IEventBindingService

Assembly: System.ComponentModel.TypeConverter

Provides a service for registering event handlers for component events.

Methods

string
CreateUniqueMethodName​(IComponent component, EventDescriptor e)
Creates a unique name for an event-handler method for the specified component and event.
Returns The recommended name for the event-handler method for this event.
component The component instance the event is connected to.
e The event to create a name for.
GetCompatibleMethods​(EventDescriptor e)
Gets a collection of event-handler methods that have a method signature compatible with the specified event.
Returns A collection of strings.
e The event to get the compatible event-handler methods for.
GetEvent​(PropertyDescriptor property)
Gets an <see cref="T:System.ComponentModel.EventDescriptor" /> for the event that the specified property descriptor represents, if it represents an event.
Returns An <see cref="T:System.ComponentModel.EventDescriptor" /> for the event that the property represents, or <see langword="null" /> if the property does not represent an event.
property The property that represents an event.
GetEventProperties​(EventDescriptorCollection events)
Converts a set of event descriptors to a set of property descriptors.
Returns An array of <see cref="T:System.ComponentModel.PropertyDescriptor" /> objects that describe the event set.
events The events to convert to properties.
GetEventProperty​(EventDescriptor e)
Converts a single event descriptor to a property descriptor.
Returns A <see cref="T:System.ComponentModel.PropertyDescriptor" /> that describes the event.
e The event to convert.
bool
ShowCode​()
Displays the user code for the designer.
Returns <see langword="true" /> if the code is displayed; otherwise, <see langword="false" /> .
bool
ShowCode​(IComponent component, EventDescriptor e)
Displays the user code for the specified event.
Returns <see langword="true" /> if the code is displayed; otherwise, <see langword="false" /> .
component The component that the event is connected to.
e The event to display.
bool
ShowCode​(int lineNumber)
Displays the user code for the designer at the specified line.
Returns <see langword="true" /> if the code is displayed; otherwise, <see langword="false" /> .
lineNumber The line number to place the caret on.