[]
        
(Showing Draft Content)

GC.Spread.Sheets.Point

Class: Point

Spread.Sheets.Point

Table of contents

Constructors

Methods

Constructors

constructor

new Point(x, y)

Represents an x- and y-coordinate pair in two-dimensional space.

example

//This example creates a floating object.
var customFloatingObject = new GC.Spread.Sheets.FloatingObjects.FloatingObject("f1");
var point = new GC.Spread.Sheets.Point(10, 10);
customFloatingObject.position(point);
customFloatingObject.width(60);
customFloatingObject.height(64);
var btn = document.createElement('button');
btn.style.width = "60px";
btn.style.height = "30px";
btn.innerText = "button";
customFloatingObject.content(btn);
activeSheet.floatingObjects.add(customFloatingObject);

Parameters

Name Type Description
x number The x-coordinate.
y number The y-coordinate.

Methods

clone

clone(): Point

Clones a new point from the current point.

Returns

Point

The cloned object.