[]
        
首页
开发者学堂
文档
论坛
市场
生态机会
活动
立即试用
(Showing Draft Content)

GC.Spread.Sheets.Point

Class: Point

Spread.Sheets.Point

Table of contents

Constructors

Methods

Constructors

constructor

• 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);

Parameters

Name Type Description
x number x-坐标。
y number y-坐标。

Methods

clone

▸ clone(): Point

克隆当前点的新点。

Returns

Point

克隆的对象。