Sets a name to the current active sheet.
Name | Type | Description |
sName | string | The name which will be displayed for the current sheet at the sheet tab. |
builder.CreateFile("xlsx"); var oWorksheet = Api.GetActiveSheet(); oWorksheet.SetName("sheet 1"); var sName = oWorksheet.GetName(); oWorksheet.GetRange("A1").SetValue("Worksheet name: "); oWorksheet.GetRange("A1").AutoFit(false, true); oWorksheet.GetRange("B1").SetValue(sName); builder.SaveFile("xlsx", "SetName.xlsx"); builder.CloseFile();