Get Started
Documentation

GetAddress

GetAddress(RowAbs, ColAbs, RefStyle, External, RelativeTo) → { string | null }

Get cell adress

Parameters:

Name Type Description
RowAbs bool
ColAbs bool
RefStyle string
External bool
RelativeTo range

Returns:

Type
string | null

Example

Copy code
builder.CreateFile("xlsx");
var oWorksheet = Api.GetActiveSheet();
oWorksheet.GetRange("A1").SetValue("1");
oWorksheet.GetRange("B1").SetValue("2");
var oAddress = oWorksheet.GetRange("A1").GetAddress(true, true, 'xlA1', false);
oWorksheet.GetRange("A3").SetValue("Address: ");
oWorksheet.GetRange("B3").SetValue(oAddress);
builder.SaveFile("xlsx", "GetAddress.xlsx");
builder.CloseFile();

Resulting document