SpreadJS Documentation
Style class
Represents the style for a cell, row, and column.
Syntax
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);
function Style;
Inheritance Hierarchy

Object
   GcSpread.Sheets.Style

Constructors
 NameDescription
public ConstructorStyle ConstructorRepresents the style for a cell, row, and column.  
Top
Fields
 NameDescription
public FieldbackColorIndicates the background color.  
public FieldbackgroundImageIndicates the background image.  
public FieldbackgroundImageLayoutIndicates the background image layout.  
public FieldborderBottomIndicates the bottom border line.  
public FieldborderLeftIndicates the left border line.  
public FieldborderRightIndicates the right border line.  
public FieldborderTopIndicates the top border line.  
public FieldcellTypeIndicates the cell type.  
public FieldfontIndicates the font.  
public FieldforeColorIndicates the foreground color.  
public FieldformatterIndicates the formatter.  
public FieldhAlignIndicates the horizontal alignment.  
public FieldimeModeIndicates the Input Method Editor (IME) mode.  
public FieldlockedIndicates whether a cell is marked as locked from editing.  
public FieldnameIndicates the name.  
public FieldparentNameIndicates the name of the parent style.  
public FieldshrinkToFitIndicates whether to shrink to fit.  
public FieldtabStopIndicates whether the user can set focus to the cell using the Tab key.  
public FieldtextDecorationIndicates the decoration added to text.  
public FieldtextIndentIndicates the number of units of indentation for text in a cell, an integer value, where an increment of 1 represents 8 pixels.  
public FieldthemeFontIndicates the font theme.  
public FieldvalidatorIndicates the data validator.  
public FieldvAlignIndicates the vertical alignment.  
public FieldwatermarkIndicates the watermark content.  
public FieldwordWrapIndicates whether to wrap text.  
Top
Methods
 NameDescription
public MethodclearClears the specified property value based on the property name.  
public MethodcomposeComposes settings from another style for the current style.  
public MethodcopyFromCopies settings from another style to the current style.  
Top
See Also

Reference

GcSpread.Sheets Namespace

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.