IEventBindingService.ShowCode Method    
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Displays the user code for the designer.
Overloads
| ShowCode() | Displays the user code for the designer. | 
| ShowCode(Int32) | Displays the user code for the designer at the specified line. | 
| ShowCode(IComponent, EventDescriptor) | Displays the user code for the specified event. | 
ShowCode()
- Source:
- IEventPropertyService.cs
Displays the user code for the designer.
public:
 bool ShowCode();public bool ShowCode();abstract member ShowCode : unit -> boolPublic Function ShowCode () As BooleanReturns
true if the code is displayed; otherwise, false.
Remarks
This method displays the code editor.
Applies to
ShowCode(Int32)
- Source:
- IEventPropertyService.cs
Displays the user code for the designer at the specified line.
public:
 bool ShowCode(int lineNumber);public bool ShowCode(int lineNumber);abstract member ShowCode : int -> boolPublic Function ShowCode (lineNumber As Integer) As BooleanParameters
- lineNumber
- Int32
The line number to place the caret on.
Returns
true if the code is displayed; otherwise, false.
Remarks
This method displays the code editor and positions the cursor on the specified line.
Applies to
ShowCode(IComponent, EventDescriptor)
- Source:
- IEventPropertyService.cs
Displays the user code for the specified event.
public:
 bool ShowCode(System::ComponentModel::IComponent ^ component, System::ComponentModel::EventDescriptor ^ e);public bool ShowCode(System.ComponentModel.IComponent component, System.ComponentModel.EventDescriptor e);abstract member ShowCode : System.ComponentModel.IComponent * System.ComponentModel.EventDescriptor -> boolPublic Function ShowCode (component As IComponent, e As EventDescriptor) As BooleanParameters
- component
- IComponent
The component that the event is connected to.
The event to display.
Returns
true if the code is displayed; otherwise, false.
Remarks
This method displays the code editor and positions the cursor on the line that the specified event is declared on.