SetReferenceStyle

function SetReferenceStyle(sReferenceStyle: ReferenceStyle = null): void

Description

Sets the cell reference style.

Parameters

sReferenceStyleReferenceStyledefault: null

The cell reference style.

Returns

void

Try It

var oWorksheet = Api.GetActiveSheet();
Api.SetReferenceStyle("xlR1C1");
oWorksheet.GetRange("A1").SetValue(Api.GetReferenceStyle());

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).