SpreadJS Documentation
setColumnHeaderAutoText Method
A value that indicates what the column header displays.
Sets a value that indicates whether the column header displays letters or numbers or is blank.
Syntax
var instance = new GcSpread.Sheets.Sheet(name);
var value; // Type: any
value = instance.setColumnHeaderAutoText(autoText);
function setColumnHeaderAutoText( 
   autoText : HeaderAutoText
) : any;

Parameters

autoText
A value that indicates what the column header displays.
Example
This example specifies that a specific column header displays numbers.
sheet.setRowCount(2,GcSpread.Sheets.SheetArea.colHeader);
sheet.setColumnCount(2,GcSpread.Sheets.SheetArea.rowHeader);
sheet.setValue(0, 2,"Column",GcSpread.Sheets.SheetArea.colHeader);
sheet.setColumnHeaderAutoTextIndex(1);
sheet.setColumnHeaderAutoText(GcSpread.Sheets.HeaderAutoText.numbers);
Remarks

See Also

Reference

Sheet type
HeaderAutoText Enumeration

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.