#JavascriptFunction

##Properties

Datatype Property name Property description Default Value
String Name Gets or sets the name of the javascript function. null

##Methods

###Add(Izenda.AdHoc.Toolkits.JavascriptObject) Adds a new statement to the list of statements that will comprise the body of the javascript function.

Parameters:

Returns:

The Izenda.AdHoc.Toolkits.JavascriptFunction after the statement is added.


###AddRange(System.Collections.Generic.IEnumerable<Izenda.AdHoc.Toolkits.JavascriptObject>) Adds a list of statements to the javascript statements that will comprise the body of the javascript function.

Parameters:

Returns:

The Izenda.AdHoc.Toolkits.JavascriptFunction after the statements are added.


###End() Renders the end of a javascript line.

Returns:

The Izenda.AdHoc.Toolkits.JavascriptObject that renders the end of a javascript line.


###Equals(System.Object) Determines whether the specified System.Object is equal to the current System.Object.

Parameters:

Returns:

true if the specified System.Object is equal to the current System.Object; otherwise, false.


###Exec(Izenda.AdHoc.Toolkits.JavascriptObject[]) Adds a statement that uses the specified parameter array that will get rendered as an execution of the javascript method declaration registered to the object.

Parameters:

Returns:

The Izenda.AdHoc.Toolkits.JavascriptObject that was created after adding the parameter information.


###GetHashCode() Serves as a hash function for a particular type.

Returns:

A hash code for the current System.Object.


###GetType() Gets the System.Type of the current instance.

Returns:

The System.Type instance that represents the exact runtime type of the current instance.


###Method(System.String,Izenda.AdHoc.Toolkits.JavascriptObject[]) Adds a statement that uses the specified name and parameter array that will get rendered as a method invocation of a method on the javascript method declaration registered to the object.

Parameters:

Returns:

The Izenda.AdHoc.Toolkits.JavascriptObject that was created after adding the method and parameter information.


###Render() Produces a System.String javascript function from the name, parameters, and statements that can be inserted into a web page or web control.

Returns:

A System.String javascript function that can be inserted into a web page or web control.


###Render(Izenda.AdHoc.Toolkits.JavascriptObject.Indentation) Produces a System.String javascript function from the name, parameters, and statements that can be inserted into a web page or web control using the specified indentation.

Parameters:

Returns:

A System.String javascript function that can be inserted into a web page or web control.


###Render(System.String,System.String) Renders the javascript constructed using the information on the Izenda.AdHoc.Toolkits.JavascriptObject for the indentation level specified.

Parameters:

Returns:

The System.String rendered javascript method with the prepended indentation characters, methods, and parameters for those methods.


###ToString() Gets the System.String representation of the object.

Returns:

The System.String representation of the object.