EventBindingService::IEventBindingService::ShowCode Method (IComponent^, EventDescriptor^)

 

Displays the user code for the specified event.

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

private:
virtual bool ShowCode(
	IComponent^ component,
	EventDescriptor^ e
) sealed = IEventBindingService::ShowCode

Parameters

component
Type: System.ComponentModel::IComponent^

The component that the event is connected to.

e
Type: System.ComponentModel::EventDescriptor^

The event to display.

Return Value

Type: System::Boolean

true if the code is displayed; otherwise, false.

Exception Condition
ArgumentNullException

events is null.

.NET Framework
Available since 2.0
Return to top
Show: