LitDev Extension API

GW LD3DView LDArray LDBits LDBlueTooth
LDCall LDChart LDClient LDClipboard LDColours
LDCommPort LDController LDControls LDCursors LDDataBase
LDDateTime LDDebug LDDialogs LDDictionary LDEffect
LDEmail LDEncryption LDEvents LDFastArray LDFastShapes
LDFigures LDFile LDFinances LDFocus LDftp
LDGeography LDGraph LDGraphicsWindow LDHashTable LDHID
LDIcon LDImage LDInline LDIOWarrior LDList
LDLogic LDMath LDMathX LDMatrix LDMusic
LDNetwork LDPhysics LDProcess LDQueue LDRegex
LDResources LDScrollBars LDSearch LDServer LDSettings
LDShapes LDShell LDSort LDSound LDSpeech
LDStatistics LDStopwatch LDText LDTextWindow LDTimer
LDTranslate LDUnits LDUtilities LDVector LDWaveForm
LDWebCam LDWindows LDxml LDZip TW

LDInline
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)
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)
Set a callback subroutine for a previously included event.
Event The event name.
callBack The callback subroutine.

Get(property)
Get a previously included property.
property The property name.
returns The property value or "FAILED".

GetAssemblies(fullName)
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()
Get an array of inline events loaded.
returns Array of event names and handler type.

GetMethodParameters(method)
Get an array of inline method loaded parameters (arguments).
method The method name.
returns Array of parameter names and type.

GetMethods(fullName)
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()
Get an array of inline properties loaded.
returns Array of property names and type.

GetReferences(fullName)
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()
Get an array of inline class types loaded.
returns Array of class types and namespace.

IncludeCS(source,assemblies,dllName)
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)
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)
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)
Use a previously compiled and saved dll.
dllName The dll path.

Set(property,value)
Set a previously included property.
property The property name.
value The property value.