• HOME
  • PRODUCTS
  • DEMOS
  • BUY
  • BLOG
  • FORUM
  • DOCUMENTATION
  • ABOUT
  • FREE EVALUATION
Search Results for

    Show / Hide Table of Contents

    ScriptLanguage Property

    ScriptLanguage

    Gets or sets programming language of the script.

    Declaration
    public ScriptLanguage ScriptLanguage { get; set; }
    Property Value
    Type Description
    ScriptLanguage
    Implements
    IScriptRun.ScriptLanguage
    Remarks

    ScriptLanguage property can be one of the programming languages: TypeScript or JavaScript.

    Examples

    Here is how to use a ScriptLanguage in the C# code:

    using System.Linq;
    using System.Windows.Forms;
    
    using Alternet.Scripter.TypeScript;
    
    public partial class Form1 : Form
    {
        private ScriptRun scriptRun;
        private void Form1_Load(object sender, EventArgs e)
        {
            scriptRun = new ScriptRun() { ScriptLanguage = ScriptLanguage.JavaScript };
        }
    }
    

    Here is how to use a ScriptLanguage in the Visual Basic code:

    Imports System.Linq
    Imports System.Windows.Forms
    Imports Alternet.Scripter.TypeScript
    
    Partial Public Class Form1
        Inherits Form
    
        Private scriptRun As ScriptRun
    
        Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs)
            scriptRun = New ScriptRun() With {
                .ScriptLanguage = ScriptLanguage.JavaScript
            }
        End Sub
    End Class
    
    In This Article
    Back to top Copyright AlterNET Software Download PDF