[]
• new Point(x, y)
表示一个二维空间中的x-和y-坐标对。
example
//此示例创建一个浮动对象。
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);
| Name | Type | Description |
|---|---|---|
x |
number |
x-坐标。 |
y |
number |
y-坐标。 |
▸ clone(): Point
克隆当前点的新点。
克隆的对象。