IEventBindingService.ShowCode Method

Definition

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()

Displays the user code for the designer.

public:
 bool ShowCode();
public bool ShowCode ();
abstract member ShowCode : unit -> bool
Public Function ShowCode () As Boolean

Returns

true if the code is displayed; otherwise, false.

Remarks

This method displays the code editor.

Applies to

ShowCode(Int32)

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 -> bool
Public Function ShowCode (lineNumber As Integer) As Boolean

Parameters

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)

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 -> bool
Public Function ShowCode (component As IComponent, e As EventDescriptor) As Boolean

Parameters

component
IComponent

The component that the event is connected to.

e
EventDescriptor

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.

Applies to