menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ScriptManagerEx - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ScriptManagerEx

    Class that controls one block of script.

    Inheritance
    System.Object
    ScriptingManager
    ScriptManagerEx
    Implements
    System.IDisposable
    Inherited Members
    ScriptingManager.ApplicationBase
    ScriptingManager.ClearScriptSite()
    ScriptingManager.CloseScriptEngine()
    ScriptingManager.CompileError
    ScriptingManager.CompileScript()
    ScriptingManager.CreateScript()
    ScriptingManager.CreateScriptEngine()
    ScriptingManager.CreateScriptSite()
    ScriptingManager.Init()
    ScriptingManager.InvokeScriptMethod(String)
    ScriptingManager.IsScriptCompiled
    ScriptingManager.IsScriptRunning
    ScriptingManager.LoadScript(Stream)
    ScriptingManager.LoadScript(String)
    ScriptingManager.NeedToCompile
    ScriptingManager.RegisterEventSource(String, Object)
    ScriptingManager.RegisterGlobalInstance(String, Object)
    ScriptingManager.ResetScriptEngine()
    ScriptingManager.RunScript()
    ScriptingManager.Script
    ScriptingManager.ScriptChanged
    ScriptingManager.ScriptEngine
    ScriptingManager.ScriptSite
    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
    ScriptingManager.OnCompileError(VsaErrorEventArgs)

    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
    ScriptingManager.OnScriptChanged(ScriptEventArgs)

    Implements

    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved