CodeDomEventBindingService::ShowCode Method (IComponent^, EventDescriptor^, String^)
Visual Studio 2015
Shows the body of the user code with the given method name and event descriptor.
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^
- methodName
-
Type:
System::String^
The name of the method.
Return Value
Type: System::Booleantrue 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.
Show: