SpreadJS Documentation
clearStyleProperty Method
The property name.
Clears the style setting for the specified property that is a property of GcSpread.Sheets.Style, such as "backColor", "foreColor", and so on.
Syntax
var instance = new GcSpread.Sheets.Cell(sheet, row, col, sheetArea);
var value; // Type: any
value = instance.clearStyleProperty(propertyName);
function clearStyleProperty( 
   propertyName : string
) : any;

Parameters

propertyName
The property name.
Example
This example uses the clearStyleProperty method.
var style = new GcSpread.Sheets.Style();
style.backColor = "lightgreen";
activeSheet.setStyle(1,1,style,GcSpread.Sheets.SheetArea.viewport);
activeSheet.getCell(1,1).clearStyleProperty("backColor");
See Also

Reference

Cell type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.