Click or drag to resize

IScriptText Interface

Represents a script, for example a table or column script.

Namespace: Altaxo.Scripting
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public interface IScriptText : IPureScriptText, 
	ICloneable

The IScriptText type exposes the following members.

Properties
 NameDescription
Public propertyCodeEnd Gets the text inserted after the user code ends.
Public propertyCodeHeader Gets the code header, i.e. the leading script text. This includes the using statements
Public propertyCodeStart Gets the text inserted before the user code starts.
Public propertyCodeTail Get the ending text of the script, dependent on the ScriptStyle.
Public propertyCodeUserDefault Gets the default user code, for example a code sample.
Public propertyErrors Gets the compiler errors.
Public propertyIsReadOnly Returns true when the script text can not be modified. Use CloneForModification to obtain a writable copy.
Public propertyScriptName Gets the script file name.
Public propertyScriptObject Gets the compiled script object, if available.
Public propertyScriptObjectType Gives the type of the script object (full name), which is created after successfull compilation.
Public propertyScriptText Gets or sets the script text.
(Inherited from IPureScriptText)
Public propertyUserAreaScriptOffset 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 ------"
Top
Methods
 NameDescription
Public methodClearErrors Clears the errors.
Public methodCloneCreates a new object that is a copy of the current instance.
(Inherited from ICloneable)
Public methodCloneForModification Clones the script so that the text can be modified.
Public methodCompile 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.
Public methodCopyFrom Copies the content of a script to here.
Public methodSetCompilerResult Sets the compiler result for this script.
Top
See Also