Spread.Sheets Documentation
Using TypeScript

You can add TypeScript support to Spread.Sheets. TypeScript provides strongly-typed access and better information about your code.

You can download TypeScript and get additional information from the TypeScript web site, http://www.typescriptlang.org/.

The TypeScript definition file for Spread.Sheets is located in the definition folder under the main product folder (Spread.Sheets\definition\GC.Spread.Sheets.d.ts).

Use the following steps to add TypeScript support to Spread.Sheets.

  1. Add GC.Spread.Sheets.d.ts and jquery.d.ts references to your typescript file.

    /// <reference path="path/jquery.d.ts" />
    /// <reference path="path/GC.Spread.Sheets.d.ts" />

  2. Add code to your application. Information about Spread.Sheets is displayed as in the following examples.

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.