Click or drag to resize

IFunctionEvaluationScriptText Interface

[Missing <summary> documentation for "T:Altaxo.Scripting.IFunctionEvaluationScriptText"]


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

The IFunctionEvaluationScriptText type exposes the following members.

Properties
 NameDescription
Public propertyCodeEnd Gets the line after the user code ends
(Inherited from IScriptText)
Public propertyCodeHeader Gets the code header, i.e. the leading script text. This includes the using statements
(Inherited from IScriptText)
Public propertyCodeStart Gets the line before the user code starts
(Inherited from IScriptText)
Public propertyCodeTail Get the ending text of the script, dependent on the ScriptStyle.
(Inherited from IScriptText)
Public propertyCodeUserDefault Gets the default code (i.e. an code example)
(Inherited from IScriptText)
Public propertyErrors Returns the compiler errors as array of strings.
(Inherited from IScriptText)
Public propertyIsReadOnly Returns true when the script text can not be modified. Use CloneForModification to obtain a writable copy.
(Inherited from IScriptText)
Public propertyScriptName
(Inherited from IScriptText)
Public propertyScriptObject
(Inherited from IScriptText)
Public propertyScriptObjectType Gives the type of the script object (full name), which is created after successfull compilation.
(Inherited from IScriptText)
Public propertyScriptText Get / 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 ------"
(Inherited from IScriptText)
Top
Methods
 NameDescription
Public methodClearErrors Clears the errors.
(Inherited from IScriptText)
Public methodCloneCreates a new object that is a copy of the current instance.
(Inherited from ICloneable)
Public methodCloneForModification This clones the script so that the text can be modified.
(Inherited from IScriptText)
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.
(Inherited from IScriptText)
Public methodCopyFrom Copies the content of a script to here.
(Inherited from IScriptText)
Public methodEvaluate Executes the script. If no instance of the script object exists, a error message will be stored and the return value is false. If the script object exists, the function "EvalulateFunctionValue" will be called with the provided parameter x. If this function throws an exception, the value double.NaN will be returned.
Public methodSetCompilerResult
(Inherited from IScriptText)
Top
See Also