SpreadJS Documentation
type Method
GC.Spread.Sheets.Shapes Namespace > ConnectorShape type : type Method
Gets the connector type of the connectorShape.
Syntax
var instance = new GC.Spread.Sheets.Shapes.ConnectorShape(worksheet, name, connectorType, beginX, beginY, endX, endY);
var value; // Type: ConnectorType
value = instance.type();
function type() : ConnectorType;

Return Value

returns the connector type of the shape.
Example
var shape = sheet.shapes.addConnector("myShape", GC.Spread.Sheets.Shapes.ConnectorType.straight, 220, 120, 300, 120);
var shapeName = shape.type();
See Also

Reference

ConnectorShape type