SpreadJS Documentation
text Method
GC.Spread.Sheets.Shapes Namespace > Shape type : text Method
The text of the shape specified by a string or formula (starts with =) can get a string.
Gets or sets the text of the shape.
Syntax
var instance = new GC.Spread.Sheets.Shapes.Shape(worksheet, name, autoShapeTypeOrModel, left, top, width, height);
var returnValue; // Type: any
returnValue = instance.text(value);
function text( 
   value : string
) : any;

Parameters

value
The text of the shape specified by a string or formula (starts with =) can get a string.

Return Value

If no value is set, returns the text of the shape.
Example
var heart = sheet.shapes.add("Shape1", GC.Spread.Sheets.Shapes.AutoShapeType.heart, 100, 60, 200, 160);
heart.text("My Shape");
var s = heart.text();
See Also

Reference

Shape type