SpreadJS Documentation
getColumnHeaderVisible Method
Gets a value that indicates whether the column header is visible.
Syntax
var instance = new GcSpread.Sheets.Sheet(name);
var value; // Type: boolean
value = instance.getColumnHeaderVisible();
function getColumnHeaderVisible() : boolean;

Return Value

true if the column header is visible; otherwise, false.
Example
This example returns the settings for the column and row headers.
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.getColumnHeaderAutoText();
var hindex = activeSheet.getColumnHeaderAutoTextIndex();
var hvisible = activeSheet.getColumnHeaderVisible();
alert(htext);
alert(hindex);
alert(hvisible);
Remarks
The default value is true.
See Also

Reference

Sheet type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.