Class ScriptManagerEx
Class that controls one block of script.
Implements
System.IDisposable
Inherited Members
Namespace: Syncfusion.Windows.Forms.HTMLUI
Assembly: Syncfusion.HTMLUI.Windows.dll
Syntax
public sealed class ScriptManagerEx : ScriptingManager, IDisposable
Constructors
ScriptManagerEx(HTMLScriptSite, HTMLScript)
Initializes a new instance of the ScriptManagerEx class
Declaration
public ScriptManagerEx(HTMLScriptSite scriptSite, HTMLScript script)
Parameters
Type | Name | Description |
---|---|---|
HTMLScriptSite | scriptSite | Script site object. |
HTMLScript | script | Owner of the current script. |
Properties
AutoRun
Gets or sets a value indicating whether the script must be run just after compilation.
Declaration
public bool AutoRun { get; set; }
Property Value
Type |
---|
System.Boolean |
File
Gets or sets the path to file with script code.
Declaration
public string File { get; set; }
Property Value
Type |
---|
System.String |
IsEmbeded
Gets or sets a value indicating whether the script source is embedded or a separate file.
Declaration
public bool IsEmbeded { get; set; }
Property Value
Type |
---|
System.Boolean |
QuietMode
Gets or sets a value indicating whether the Quiet mode for the object.
Declaration
public bool QuietMode { get; set; }
Property Value
Type |
---|
System.Boolean |
Methods
Compile()
Compiles script and runs script if property 'AutoRun' is enabled.
Declaration
public bool Compile()
Returns
Type | Description |
---|---|
System.Boolean | Returns True if script was successfully compiled; false otherwise. |
OnCompileError(VsaErrorEventArgs)
Overridden. Raises event that compiles error occured and infills collection of errors.
Declaration
protected override void OnCompileError(VsaErrorEventArgs evtArgs)
Parameters
Type | Name | Description |
---|---|---|
VsaErrorEventArgs | evtArgs | Event arguments. |
Overrides
OnScriptChanged(ScriptEventArgs)
Overridden. Raised when script has been chnged.
Declaration
protected override void OnScriptChanged(ScriptEventArgs evtArgs)
Parameters
Type | Name | Description |
---|---|---|
ScriptEventArgs | evtArgs | Event arguments. |
Overrides
Implements
System.IDisposable