GetNumberFormat
function GetNumberFormat(): string | "null"
Description
Returns a value that represents the format code for the current range.
Returns
string | "null"
Try It
var oWorksheet = Api.GetActiveSheet();
var oRange = oWorksheet.GetRange("B2");
oRange.SetValue(3);
var sFormat = oRange.GetNumberFormat();
oWorksheet.GetRange("B3").SetValue("Number format: " + sFormat);