[]
        
(Showing Draft Content)

GC.Spread.Sheets.Point

类: Point

Spread.Sheets.Point

Table of contents

构造方法

方法

构造方法

constructor

new Point(x, y)

二维空间中一个xy的坐标对

代码示例

//本示例创建了一个浮动对象
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);

参数

属性名 类型 说明
x number x坐标
y number y坐标

方法

clone

clone(): Point

从当前点克隆一个新的点

返回值

Point

克隆的对象