Table of Contents

Method ShowCode

Namespace
Alternet.FormDesigner.WinForms
Assembly
Alternet.FormDesigner.v9.dll

ShowCode(IComponent, EventDescriptor)

Displays the user code for the given event.

public bool ShowCode(IComponent component, EventDescriptor e)

Parameters

component IComponent

IComponent owns specified event.

e EventDescriptor

Information about event.

Returns

bool

This will return true if the user code could be displayed, or false otherwise.

ShowCode()

Shows the user code. This method does not show any particular code; generally it shows the last code the user typed. This returns true if it was possible to show the code, or false if not. We are never showing code since we do not generate handler methods.

public bool ShowCode()

Returns

bool

True if succeed; otherwise false.

ShowCode(int)

Shows the user code at the given line number. Line numbers are one-based. This returns true if it was possible to show the code, or false if not. We are never showing code since we do not generate handler methods.

public bool ShowCode(int lineNumber)

Parameters

lineNumber int

Number of line to check.

Returns

bool

True if succeed; otherwise false.

ShowCode(object, EventDescriptor, string)

protected bool ShowCode(object component, EventDescriptor e, string methodName)

Parameters

component object
e EventDescriptor
methodName string

Returns

bool