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

 

Displays the user code for the specified method.

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

protected:
virtual bool ShowCode(
	IComponent^ component,
	EventDescriptor^ e,
	String^ methodName
) abstract

Parameters

component
Type: System.ComponentModel::IComponent^

The component to which the method is bound.

e
Type: System.ComponentModel::EventDescriptor^

The EventDescriptor for the event handler.

methodName
Type: System::String^

The name of the method for which to display code.

Return Value

Type: System::Boolean

true if it is possible to display the code; otherwise, false.

The ShowCode method displays the body of the user code with the given method name.

.NET Framework
Available since 2.0
Return to top
Show: