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

 

Shows the body of the user code with the given method name and event descriptor.

Namespace:   Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

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

Parameters

component
Type: System.ComponentModel::IComponent^

IComponent.

e
Type: System.ComponentModel::EventDescriptor^

EventDescriptor.

methodName
Type: System::String^

The name of the method.

Return Value

Type: System::Boolean

true if it was possible to open the editor window, otherwise false.

This method first calculates the line number of the method by inspecting the code DOM's LinePragma and UserData properties, and then navigates to the line using the Visual Studio text manager.

Return to top
Show: