GetValue2

function GetValue2(): string | string[][]

Description

Returns the Value2 property (value without format) of the specified range.

Returns

string | string[][]

Try It

var oWorksheet = Api.GetActiveSheet();
var oFormat = Api.Format("123456", "$#,##0");
var oRange = oWorksheet.GetRange("A1");
oRange.SetValue(oFormat);
var sValue2 = oRange.GetValue2();
oWorksheet.GetRange("A3").SetValue("Value of the cell A1 without format: " + sValue2);

Get Help

  • If you have any questions about ONLYOFFICE Docs, try the FAQ section first.
  • You can request a feature or report a bug by posting an issue on GitHub.
  • You can also ask our developers on ONLYOFFICE forum (registration required).