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

Object
   GC.Spread.Sheets.CellTypes.Base
      GC.Spread.Sheets.CellTypes.Button

Constructors
 NameDescription
public ConstructorButton ConstructorRepresents a button cell.  
Top
Fields
 NameDescription
public FieldtypeName (Inherited from GC.Spread.Sheets.CellTypes.Base)
Top
Methods
 NameDescription
public MethodactivateEditor (Inherited from GC.Spread.Sheets.CellTypes.Base)
public MethodbuttonBackColorGets or sets the button's background color.  
public MethodcreateEditorElement (Inherited from GC.Spread.Sheets.CellTypes.Base)
public MethoddeactivateEditor (Inherited from GC.Spread.Sheets.CellTypes.Base)
public Methodfocus (Inherited from GC.Spread.Sheets.CellTypes.Base)
public Methodformat (Inherited from GC.Spread.Sheets.CellTypes.Base)
public MethodfromJSON (Inherited from GC.Spread.Sheets.CellTypes.Base)
public MethodgetAutoFitHeight (Inherited from GC.Spread.Sheets.CellTypes.Base)
public MethodgetAutoFitWidth (Inherited from GC.Spread.Sheets.CellTypes.Base)
public MethodgetEditorValue (Inherited from GC.Spread.Sheets.CellTypes.Base)
public MethodgetHitInfo (Inherited from GC.Spread.Sheets.CellTypes.Base)
public MethodisEditingValueChanged (Inherited from GC.Spread.Sheets.CellTypes.Base)
public MethodisImeAware (Inherited from GC.Spread.Sheets.CellTypes.Base)
public MethodisReservedKey (Inherited from GC.Spread.Sheets.CellTypes.Base)
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 GC.Spread.Sheets.CellTypes.Base)
public MethodpaintContent (Inherited from GC.Spread.Sheets.CellTypes.Base)
public Methodparse (Inherited from GC.Spread.Sheets.CellTypes.Base)
public MethodprocessKeyDown (Inherited from GC.Spread.Sheets.CellTypes.Base)
public MethodprocessKeyUp (Inherited from GC.Spread.Sheets.CellTypes.Base)
public MethodprocessMouseDown (Inherited from GC.Spread.Sheets.CellTypes.Base)
public MethodprocessMouseEnter (Inherited from GC.Spread.Sheets.CellTypes.Base)
public MethodprocessMouseLeave (Inherited from GC.Spread.Sheets.CellTypes.Base)
public MethodprocessMouseMove (Inherited from GC.Spread.Sheets.CellTypes.Base)
public MethodprocessMouseUp (Inherited from GC.Spread.Sheets.CellTypes.Base)
public MethodselectAll (Inherited from GC.Spread.Sheets.CellTypes.Base)
public MethodsetEditorValue (Inherited from GC.Spread.Sheets.CellTypes.Base)
public MethodtextGets or sets the button's content.  
public MethodtoJSON (Inherited from GC.Spread.Sheets.CellTypes.Base)
public MethodupdateEditor (Inherited from GC.Spread.Sheets.CellTypes.Base)
public MethodupdateEditorContainer (Inherited from GC.Spread.Sheets.CellTypes.Base)
public MethodupdateImeMode (Inherited from GC.Spread.Sheets.CellTypes.Base)
Top
See Also

Reference

GC.Spread.Sheets.CellTypes Namespace
Setting a Button Cell

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.