WinForms

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class HTMLScriptSite - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class HTMLScriptSite

    Inherits ScriptSite class from Scripting for returning by application provided event source and global instance objects whenever the script engine calls for it through the equivalent IVsaSite method.

    Inheritance
    System.Object
    ScriptSite
    HTMLScriptSite
    Implements
    Microsoft.Vsa.IVsaSite
    Inherited Members
    ScriptSite.Clear()
    ScriptSite.RegisterEventSource(String, Object)
    ScriptSite.RegisterGlobalInstance(String, Object)
    ScriptSite.ClearCompiledState()
    ScriptSite.SetCompiledState(IVsaEngine)
    ScriptSite.Notify(String, Object)
    ScriptSite.OnCompilerError(IVsaError)
    ScriptSite.GetCompiledState(Byte[], Byte[])
    ScriptSite.OnCompileError(VsaErrorEventArgs)
    ScriptSite.CompileError
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Windows.Forms.HTMLUI
    Assembly: Syncfusion.HTMLUI.Windows.dll
    Syntax
    public sealed class HTMLScriptSite : ScriptSite, IVsaSite

    Constructors

    HTMLScriptSite(HTMLUIControl)

    Initializes a new instance of the HTMLScriptSite class

    Declaration
    public HTMLScriptSite(HTMLUIControl control)
    Parameters
    Type Name Description
    HTMLUIControl control

    Control instance.

    Methods

    GetEventSourceInstance(String, String)

    Overridden. Returns a reference to an event source previously added to a script engine using the IVsaCodeItem.AddEventSource method.

    Declaration
    public override object GetEventSourceInstance(string itemName, string eventSourceName)
    Parameters
    Type Name Description
    System.String itemName

    Name of the object.

    System.String eventSourceName

    Name of the variable, registered previously by AddEventSource method.

    Returns
    Type Description
    System.Object

    Object from your host to user's script.

    Overrides
    ScriptSite.GetEventSourceInstance(String, String)

    GetGlobalInstance(String)

    Overridden. Returns a reference to a global item such as the host-provided application object.

    Declaration
    public override object GetGlobalInstance(string globInstanceName)
    Parameters
    Type Name Description
    System.String globInstanceName

    Name of the variable, registered previously by AddGlobalInstance method.

    Returns
    Type Description
    System.Object

    Global object.

    Overrides
    ScriptSite.GetGlobalInstance(String)

    Implements

    Microsoft.Vsa.IVsaSite
    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved