Skip to main content

GetReferenceStyle

Returns the cell reference style.

Syntax

expression.GetReferenceStyle();

expression - A variable that represents a Api class.

Parameters

This method doesn't have any parameters.

Returns

ReferenceStyle

Example

Get reference style in a spreadsheet.

// Get style of a reference in a spreadsheet.

// Insert a reference style into the cell.

let worksheet = Api.GetActiveSheet();
worksheet.GetRange("A1").SetValue(Api.GetReferenceStyle());