IScript |
public interface IScriptText : IPureScriptText, ICloneable
The IScriptText type exposes the following members.
| Name | Description | |
|---|---|---|
| CodeEnd | Gets the text inserted after the user code ends. | |
| CodeHeader | Gets the code header, i.e. the leading script text. This includes the using statements | |
| CodeStart | Gets the text inserted before the user code starts. | |
| CodeTail | Get the ending text of the script, dependent on the ScriptStyle. | |
| CodeUserDefault | Gets the default user code, for example a code sample. | |
| Errors | Gets the compiler errors. | |
| IsReadOnly | Returns true when the script text can not be modified. Use CloneForModification to obtain a writable copy. | |
| ScriptName | Gets the script file name. | |
| ScriptObject | Gets the compiled script object, if available. | |
| ScriptObjectType | Gives the type of the script object (full name), which is created after successfull compilation. | |
| ScriptText |
Gets or 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 | 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 | Sets the compiler result for this script. |