SetLocale
function SetLocale(LCID: number = null): void
Description
Sets a locale to the document.
Parameters
- LCID
number
null The locale specified.
Returns
void
Try It
var oWorksheet = Api.GetActiveSheet();
Api.SetLocale("en-CA");
oWorksheet.GetRange("A1").SetValue("A sample spreadsheet with the language set to English (Canada).");