SpreadJS Documentation
width Method
GC.Spread.Sheets.Shapes Namespace > ShapeBase type : width Method
The width of the shape specified by a number or formula (starts with =) can get a number value.
Gets or sets the width of the shape.
Syntax
var instance = new GC.Spread.Sheets.Shapes.ShapeBase();
var returnValue; // Type: any
returnValue = instance.width(value);
function width( 
   value : undefined
) : any;

Parameters

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

Return Value

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

Reference

ShapeBase type