IScript |
public interface IScriptText : IPureScriptText, ICloneable
The IScriptText type exposes the following members.
Name | Description | |
---|---|---|
CodeEnd | Gets the line after the user code ends | |
CodeHeader | Gets the code header, i.e. the leading script text. This includes the using statements | |
CodeStart | Gets the line before the user code starts | |
CodeTail | Get the ending text of the script, dependent on the ScriptStyle. | |
CodeUserDefault | Gets the default code (i.e. an code example) | |
Errors | Returns the compiler errors as array of strings. | |
IsReadOnly | Returns true when the script text can not be modified. Use CloneForModification to obtain a writable copy. | |
ScriptName | ||
ScriptObject | ||
ScriptObjectType | Gives the type of the script object (full name), which is created after successfull compilation. | |
ScriptText |
Get / sets the script text
(Inherited from IPureScriptText) | |
UserAreaScriptOffset | Gets the index in the script (considered as string), where the user area starts. This is momentarily behind the comment line " ----- add your script below this line ------" |
Name | Description | |
---|---|---|
ClearErrors | Clears the errors. | |
Clone | Creates a new object that is a copy of the current instance. (Inherited from ICloneable) | |
CloneForModification | This clones the script so that the text can be modified. | |
Compile | Does the compilation of the script into an assembly. If it was not compiled before or is dirty, it is compiled first. From the compiled assembly, a new instance of the newly created script class is created and stored in m_ScriptObject. | |
CopyFrom | Copies the content of a script to here. | |
SetCompilerResult |