LitDev Extension API
LDInline
![](images/IntellisenseObject.png)
Include C#, VB or JScript code to use at runtime.
If multiple namespaces or classes are used, then all method, property or event names should be unique.
Alternatively a fully qualified namespace.type.name may be used.
Can be used to compile extensions.
May also be used with other .Net dlls compiled externally.
Method, property, event, class and used references can be obtained (public static only).
The current application assemblies are auto referenced.
Depending on .Net methods used additional assemblies may be required.
Additional assemblies are referenced by full dll path.
Assembly dlls are often found in the following or similar locations:
C:\Windows\Microsoft.NET\Framework\v2.0.50727
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.0
The TextWindow should be visible prior to using these methods if later use of the TextWindow is required.
Call
![]() |
Event
![]() |
Get
![]() |
GetAssemblies
![]() |
GetEvents
![]() |
GetMethodParameters
![]() |
GetMethods
![]() |
GetProperties
![]() |
GetReferences
![]() |
GetTypes
![]() |
IncludeCS
![]() |
IncludeJScript
![]() |
IncludeVB
![]() |
LoadDLL
![]() |
Set
![]() |
Call(method,args)
![](images/IntellisenseMethod.png)
Call a previously included method.
method The method name.
args The method arguments, "" for none, a single value or an array for more than 1 value.
returns Any results from the call or "FAILED".
Event(Event,callBack)
![](images/IntellisenseMethod.png)
Set a callback subroutine for a previously included event.
Event The event name.
callBack The callback subroutine.
Get(property)
![](images/IntellisenseMethod.png)
Get a previously included property.
property The property name.
returns The property value or "FAILED".
GetAssemblies(fullName)
![](images/IntellisenseMethod.png)
Get an array of inline assemblies used.
These are the referenced assemblies that are actually used.
fullName Get the fully qualified name (with version, culture and PublicKeyToken) "True" or the basic name "False".
returns Array of assembly names and dll locations.
GetEvents()
![](images/IntellisenseMethod.png)
Get an array of inline events loaded.
returns Array of event names and handler type.
GetMethodParameters(method)
![](images/IntellisenseMethod.png)
Get an array of inline method loaded parameters (arguments).
method The method name.
returns Array of parameter names and type.
GetMethods(fullName)
![](images/IntellisenseMethod.png)
Get an array of inline methods loaded.
fullName Get the full name (namespace.type.method) "True" or just the method name "False".
returns Array of method names and return type.
GetProperties()
![](images/IntellisenseMethod.png)
Get an array of inline properties loaded.
returns Array of property names and type.
GetReferences(fullName)
![](images/IntellisenseMethod.png)
Get an array of inline references added.
These are the referenced added, they may or may not be used.
fullName Get the fully qualified name (with version, culture and PublicKeyToken) "True" or the basic name "False".
returns Array of reference names and dll locations.
GetTypes()
![](images/IntellisenseMethod.png)
Get an array of inline class types loaded.
returns Array of class types and namespace.
IncludeCS(source,assemblies,dllName)
![](images/IntellisenseMethod.png)
Include and compile a C# Class(es). Can be the contents of a file read with File.ReadContents().
source The C# source.
assemblies An array of any additional assemblies required.
dllName An optional path to create a dll (+xml) output, use "" to perform in-memory.
returns "FAILED" or "SUCCESS"
IncludeJScript(source,assemblies,dllName)
![](images/IntellisenseMethod.png)
Include and compile a JScript Module(s). Can be the contents of a file read with File.ReadContents().
source The JScript source.
assemblies An array of any additional assemblies required.
dllName An optional path to create a dll output, use "" to perform in-memory.
returns "FAILED" or "SUCCESS"
IncludeVB(source,assemblies,dllName)
![](images/IntellisenseMethod.png)
Include and compile a VB Module(s). Can be the contents of a file read with File.ReadContents().
source The VB source.
assemblies An array of any additional assemblies required.
dllName An optional path to create a dll (+xml) output, use "" to perform in-memory.
returns "FAILED" or "SUCCESS"
LoadDLL(dllName)
![](images/IntellisenseMethod.png)
Use a previously compiled and saved dll.
dllName The dll path.
Set(property,value)
![](images/IntellisenseMethod.png)
Set a previously included property.
property The property name.
value The property value.