[]
• 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);
Name | Type | Description |
---|---|---|
x |
number |
The x-coordinate. |
y |
number |
The y-coordinate. |
▸ clone(): Point
Clones a new point from the current point.
The cloned object.