SpreadJS Documentation
ButtonCellType class
Represents a button cell.
Syntax
var instance = new GcSpread.Sheets.ButtonCellType();
function ButtonCellType;
Example
This example creates a button cell.
var cellType = new GcSpread.Sheets.ButtonCellType();
cellType.buttonBackColor("#FFFF00");
cellType.text("this is a button");
activeSheet.getCell(0, 2).cellType(cellType);
Inheritance Hierarchy

Object
   GcSpread.Sheets.TextCellType
      GcSpread.Sheets.ButtonCellType

Constructors
 NameDescription
public ConstructorButtonCellType ConstructorRepresents a button cell.  
Top
Fields
 NameDescription
public FieldtypeName (Inherited from GcSpread.Sheets.BaseCellType)
Top
Methods
 NameDescription
public MethodactivateEditor (Inherited from GcSpread.Sheets.BaseCellType)
public MethodbuttonBackColorGets or sets the button's background color.  
public MethodcreateEditorElement (Inherited from GcSpread.Sheets.BaseCellType)
public MethoddeactivateEditor (Inherited from GcSpread.Sheets.BaseCellType)
public Methodfocus (Inherited from GcSpread.Sheets.BaseCellType)
public Methodformat (Inherited from GcSpread.Sheets.BaseCellType)
public MethodgetAutoFitHeight (Inherited from GcSpread.Sheets.BaseCellType)
public MethodgetAutoFitWidth (Inherited from GcSpread.Sheets.BaseCellType)
public MethodgetEditorValue (Inherited from GcSpread.Sheets.BaseCellType)
public MethodgetHitInfo (Inherited from GcSpread.Sheets.BaseCellType)
public MethodisEditingValueChanged (Inherited from GcSpread.Sheets.BaseCellType)
public MethodisImeAware (Inherited from GcSpread.Sheets.BaseCellType)
public MethodisReservedKey (Inherited from GcSpread.Sheets.BaseCellType)
public MethodmarginBottomGets or sets the button's bottom margin in pixels relative to the cell.  
public MethodmarginLeftGets or sets the button's left margin in pixels relative to the cell.  
public MethodmarginRightGets or sets the button's right margin in pixels relative to the cell.  
public MethodmarginTopGets or sets the button's top margin in pixels relative to the cell.  
public Methodpaint (Inherited from GcSpread.Sheets.BaseCellType)
public Methodparse (Inherited from GcSpread.Sheets.BaseCellType)
public MethodprocessKeyDown (Inherited from GcSpread.Sheets.BaseCellType)
public MethodprocessKeyUp (Inherited from GcSpread.Sheets.BaseCellType)
public MethodprocessMouseDown (Inherited from GcSpread.Sheets.BaseCellType)
public MethodprocessMouseEnter (Inherited from GcSpread.Sheets.BaseCellType)
public MethodprocessMouseLeave (Inherited from GcSpread.Sheets.BaseCellType)
public MethodprocessMouseMove (Inherited from GcSpread.Sheets.BaseCellType)
public MethodprocessMouseUp (Inherited from GcSpread.Sheets.BaseCellType)
public MethodselectAll (Inherited from GcSpread.Sheets.BaseCellType)
public MethodsetEditorValue (Inherited from GcSpread.Sheets.BaseCellType)
public MethodtextGets or sets the button's content.  
public MethodupdateEditor (Inherited from GcSpread.Sheets.BaseCellType)
public MethodupdateImeMode (Inherited from GcSpread.Sheets.BaseCellType)
Top
See Also

Reference

GcSpread.Sheets Namespace
Setting a Button Cell

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.