SpreadJS Documentation
setRowHeaderAutoTextIndex Method
The column index of the row header that displays the automatic text.
Sets which row header column displays the automatic text when there are multiple row header columns.
Syntax
var instance = new GcSpread.Sheets.Sheet(name);
var value; // Type: any
value = instance.setRowHeaderAutoTextIndex(autoTextIndex);
function setRowHeaderAutoTextIndex( 
   autoTextIndex : number
) : any;

Parameters

autoTextIndex
The column index of the row header that displays the automatic text.
Example
This example changes the row header with an index of one to letters.
sheet.setRowCount(2,GcSpread.Sheets.SheetArea.colHeader);
sheet.setColumnCount(2,GcSpread.Sheets.SheetArea.rowHeader);
sheet.setValue(0, 2,"Column",GcSpread.Sheets.SheetArea.colHeader);
sheet.setRowHeaderAutoTextIndex(1);
sheet.setRowHeaderAutoText(GcSpread.Sheets.HeaderAutoText.letters);
See Also

Reference

Sheet type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.