SpreadJS Documentation
getRowHeaderAutoText Method
Gets a value that indicates whether the row header displays letters or numbers or is blank.
Syntax
var instance = new GcSpread.Sheets.Sheet(name);
var value; // Type: HeaderAutoText
value = instance.getRowHeaderAutoText();
function getRowHeaderAutoText() : HeaderAutoText;

Return Value

A value that indicates what the row header displays.
Example
This example gets the row header settings.
activeSheet.setRowCount(2,GcSpread.Sheets.SheetArea.colHeader);
activeSheet.setColumnCount(2,GcSpread.Sheets.SheetArea.rowHeader);
activeSheet.setValue(0, 2,"Column",GcSpread.Sheets.SheetArea.colHeader);
activeSheet.setRowHeaderAutoTextIndex(1);
activeSheet.setRowHeaderAutoText( GcSpread.Sheets.HeaderAutoText.letters);
activeSheet.setColHeaderAutoTextIndex(1);
activeSheet.setColHeaderAutoText(GcSpread.Sheets.HeaderAutoText.numbers);
var htext = activeSheet.getRowHeaderAutoText();
var hindex = activeSheet.getRowHeaderAutoTextIndex();
var hvisible = activeSheet.getRowHeaderVisible();
alert(htext);
alert(hindex);
alert(hvisible);
Remarks
The default value is HeaderAutoText.numbers.
See Also

Reference

Sheet type
HeaderAutoText Enumeration

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.