
## Connect class

Represents a connection between two shapes in a drawing, such as a line and a box in an organization chart.

```js
new Connect()
```

Constructor.

## Methods

| Name | Description |
| --- | --- |
| [deepClone()](#deepclone) | Creates deep copy of this instance. |
| [getFromCell()](#getfromcell) | The cell from which a connection is made. |
| [getFromPart()](#getfrompart) | The cell from which a connection originates. The value of the property is FromPartValue integer constant. |
| [getFromSheet()](#getfromsheet) | The ID of the shape from which a connection or connections originate. |
| [getToCell()](#gettocell) | The cell to which a connection is made. |
| [getToPart()](#gettopart) | The part of a shape to which a connection is made. The value of the property is ToPartValue integer constant. |
| [getToSheet()](#gettosheet) | The ID of the shape to which one or more connections are made |
| [setFromCell()](#setfromcell) | The cell from which a connection is made. |
| [setFromPart()](#setfrompart) | The cell from which a connection originates. The value of the property is FromPartValue integer constant. |
| [setFromSheet()](#setfromsheet) | The ID of the shape from which a connection or connections originate. |
| [setToCell()](#settocell) | The cell to which a connection is made. |
| [setToPart()](#settopart) | The part of a shape to which a connection is made. The value of the property is ToPartValue integer constant. |
| [setToSheet()](#settosheet) | The ID of the shape to which one or more connections are made |

### deepClone() {#deepclone}

Creates deep copy of this instance.

**Returns:** Object — `Object`

### getFromCell() {#getfromcell}

The cell from which a connection is made.

### getFromPart() {#getfrompart}

The cell from which a connection originates. The value of the property is FromPartValue integer constant.

### getFromSheet() {#getfromsheet}

The ID of the shape from which a connection or connections originate.

### getToCell() {#gettocell}

The cell to which a connection is made.

### getToPart() {#gettopart}

The part of a shape to which a connection is made. The value of the property is ToPartValue integer constant.

### getToSheet() {#gettosheet}

The ID of the shape to which one or more connections are made

### setFromCell() {#setfromcell}

The cell from which a connection is made.

### setFromPart() {#setfrompart}

The cell from which a connection originates. The value of the property is FromPartValue integer constant.

### setFromSheet() {#setfromsheet}

The ID of the shape from which a connection or connections originate.

### setToCell() {#settocell}

The cell to which a connection is made.

### setToPart() {#settopart}

The part of a shape to which a connection is made. The value of the property is ToPartValue integer constant.

### setToSheet() {#settosheet}

The ID of the shape to which one or more connections are made
