# GC.Spread.Sheets.Point

## Content

# Class: Point

[Spread](../modules/GC.Spread).[Sheets](../modules/GC.Spread.Sheets).Point

## Table of contents

### Constructors

- [constructor](GC.Spread.Sheets.Point#constructor)

### Methods

- [clone](GC.Spread.Sheets.Point#clone)

## Constructors

### <a id="constructor" name="constructor"></a> constructor

• **new Point**(`x`, `y`)

Represents an <i>x</i>- and <i>y</i>-coordinate pair in two-dimensional space.

**`example`**
```
//This example creates a floating object.
var customFloatingObject = new GC.Spread.Sheets.FloatingObjects.FloatingObject("f1");
customFloatingObject.x(10);
customFloatingObject.y(10);
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` | The <i>x</i>-coordinate. |
| `y` | `number` | The <i>y</i>-coordinate. |

## Methods

### <a id="clone" name="clone"></a> clone

▸ **clone**(): [`Point`](GC.Spread.Sheets.Point)

Clones a new point from the current point.

#### Returns

[`Point`](GC.Spread.Sheets.Point)

The cloned object.
