GetIndex
Returns a sheet index.
Syntax
expression.GetIndex();
expression
- A variable that represents a ApiWorksheet class.
Parameters
This method doesn't have any parameters.
Returns
number
Example
This example shows how to get the left margin of the sheet.
- Code
- Result
// How to get margin of the sheet's left side.
// Get the size of the left margin of the sheet.
let worksheet = Api.GetActiveSheet();
let leftMargin = worksheet.GetLeftMargin();
worksheet.GetRange("A1").SetValue("Left margin: " + leftMargin + " mm");