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.
Implements
Microsoft.Vsa.IVsaSite
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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
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
Implements
Microsoft.Vsa.IVsaSite