
## Scratch class

Contains a work area for entering and testing formulas that are referred to by other elements. This element is typically used to isolate repeated complex calculations.

```js
new Scratch()
```

Constructor.

## Methods

| Name | Description |
| --- | --- |
| [deepClone()](#deepclone) | Creates deep copy of this instance. |
| [getA()](#geta) | A general-purpose element. |
| [getB()](#getb) | A general-purpose scratch element. |
| [getC()](#getc) | A general-purpose element. |
| [getD()](#getd) | A general-purpose element. |
| [getDel()](#getdel) | A flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted loca |
| [getIX()](#getix) | The zero-based index of the element within its parent element. |
| [getX()](#getx) | Specifies an x-coordinate on a shape in local coordinates. The following table describes the X element based on the elem |
| [getY()](#gety) | Specifies a y-coordinate on a shape in local coordinates. Local coordinates are those whose frame of reference is the sh |
| [setA()](#seta) | A general-purpose element. |
| [setB()](#setb) | A general-purpose scratch element. |
| [setC()](#setc) | A general-purpose element. |
| [setD()](#setd) | A general-purpose element. |
| [setDel()](#setdel) | A flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted loca |
| [setIX()](#setix) | The zero-based index of the element within its parent element. |
| [setX()](#setx) | Specifies an x-coordinate on a shape in local coordinates. The following table describes the X element based on the elem |
| [setY()](#sety) | Specifies a y-coordinate on a shape in local coordinates. Local coordinates are those whose frame of reference is the sh |

### deepClone() {#deepclone}

Creates deep copy of this instance.

**Returns:** Object — `Object`

### getA() {#geta}

A general-purpose element.

### getB() {#getb}

A general-purpose scratch element.

### getC() {#getc}

A general-purpose element.

### getD() {#getd}

A general-purpose element.

### getDel() {#getdel}

A flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted locally. The value of the property is BOOL integer constant.

### getIX() {#getix}

The zero-based index of the element within its parent element.

### getX() {#getx}

Specifies an x-coordinate on a shape in local coordinates. The following table describes the X element based on the element that contains it.

### getY() {#gety}

Specifies a y-coordinate on a shape in local coordinates. Local coordinates are those whose frame of reference is the shape, instead of the page.

### setA() {#seta}

A general-purpose element.

### setB() {#setb}

A general-purpose scratch element.

### setC() {#setc}

A general-purpose element.

### setD() {#setd}

A general-purpose element.

### setDel() {#setdel}

A flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted locally. The value of the property is BOOL integer constant.

### setIX() {#setix}

The zero-based index of the element within its parent element.

### setX() {#setx}

Specifies an x-coordinate on a shape in local coordinates. The following table describes the X element based on the element that contains it.

### setY() {#sety}

Specifies a y-coordinate on a shape in local coordinates. Local coordinates are those whose frame of reference is the shape, instead of the page.
