TRY NEW VERSION

SetReferenceStyle

SetReferenceStyle(sReferenceStyle)

Sets the cell reference style.

Parameters:

Name Type Description
sReferenceStyle ReferenceStyle

The cell reference style.

Returns:

This method doesn't return any data.

Example

Copy code
builder.CreateFile("xlsx");
var oWorksheet = Api.GetActiveSheet();
Api.SetReferenceStyle("xlR1C1");
var sReferenceStyle = Api.GetReferenceStyle();
oWorksheet.GetRange("A1").SetValue("The cell reference style: " + sReferenceStyle);
builder.SaveFile("xlsx", "SetReferenceStyle.xlsx");
builder.CloseFile();

Resulting document