Class ScriptEditForm
Hosts the ScriptEditControl in a Windows Form and provides IScriptEditor integration.
Inheritance
System.Object
ScriptEditForm
Implements
Namespace: Syncfusion.Scripting.Design
Assembly: Syncfusion.Scripting.Windows.dll
Syntax
public class ScriptEditForm : Form, IScriptEditor
Constructors
ScriptEditForm()
Initializes a new instance of the ScriptEditForm class.
Declaration
public ScriptEditForm()
Properties
Form
Gets the underlying Windows Form for this editor.
Declaration
public Form Form { get; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Forms.Form | The current form instance. |
ScriptEditControl
Gets the embedded script editor control.
Declaration
public ScriptEditControl ScriptEditControl { get; }
Property Value
| Type |
|---|
| ScriptEditControl |
Methods
Dispose(Boolean)
Clean up any resources being used.
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | disposing | True to release both managed and unmanaged resources; false to release only unmanaged resources. |
SetManager(ScriptingManager)
Associates a scripting manager with the embedded editor.
Declaration
protected void SetManager(ScriptingManager manager)
Parameters
| Type | Name | Description |
|---|---|---|
| ScriptingManager | manager | The scripting manager to use. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | Thrown when |
UpdateEditor(Script)
Loads the specified script into the editor UI.
Declaration
public void UpdateEditor(Script script)
Parameters
| Type | Name | Description |
|---|---|---|
| Script | script | The script to load. |
UpdateScript(Script)
Updates the provided script instance with the current values from the editor UI.
Declaration
public void UpdateScript(Script script)
Parameters
| Type | Name | Description |
|---|---|---|
| Script | script | The script instance to update. |