[]
• new Point(x
, y
)
二维空间中一个x和y的坐标对
代码示例
//本示例创建了一个浮动对象
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(): Point
从当前点克隆一个新的点
克隆的对象