GcSpread.Sheets Namespace > Style class : copyFrom Method |
var instance = new GcSpread.Sheets.Style(backColor, foreColor, hAlign, vAlign, font, themeFont, formatter, borderLeft, borderTop, borderRight, borderBottom, locked, textIndent, wordWrap, shrinkToFit, backgroundImage, cellType, backgroundImageLayout, tabStop, textDecoration, imeMode, name, parentName, watermark); var value; // Type: any value = instance.copyFrom(style);
var style = new GcSpread.Sheets.Style(); style.backColor = "lightgreen"; style.foreColor = "red"; activeSheet.setStyle(1,1,style,GcSpread.Sheets.SheetArea.viewport); var style2 = new GcSpread.Sheets.Style(); style2.foreColor = "black"; style2.copyFrom(style); activeSheet.setStyle(1,3,style2,GcSpread.Sheets.SheetArea.viewport);