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

Parameters

value
The horizontal location of the shape specified by a number or formula (starts with =) can get a number value.
Example
var heart = sheet.shapes.add("Shape1", GC.Spread.Sheets.Shapes.AutoShapeType.heart, 100, 60, 200, 160);
var n = heart.x();
heart.x(n + 50);
See Also

Reference

ShapeBase type