
**Inheritance:**
java.lang.Object
```
public class Connect
```

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

| Constructor | Description |
| --- | --- |
| [Connect()](#Connect--) | Constructor. |
## Methods

| Method | Description |
| --- | --- |
| [deepClone()](#deepClone--) | Creates deep copy of this instance. |
| [equals(Object arg0)](#equals-java.lang.Object-) |  |
| [getClass()](#getClass--) |  |
| [getFromCell()](#getFromCell--) | The cell from which a connection is made. |
| [getFromPart()](#getFromPart--) | The cell from which a connection originates. |
| [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. |
| [getToSheet()](#getToSheet--) | The ID of the shape to which one or more connections are made |
| [hashCode()](#hashCode--) |  |
| [notify()](#notify--) |  |
| [notifyAll()](#notifyAll--) |  |
| [setFromCell(String value)](#setFromCell-java.lang.String-) | For the description of this property, please see [getFromCell()](../../com.aspose.diagram/connect\#getFromCell--) |
| [setFromPart(int value)](#setFromPart-int-) | For the description of this property, please see [getFromPart()](../../com.aspose.diagram/connect\#getFromPart--) |
| [setFromSheet(long value)](#setFromSheet-long-) | For the description of this property, please see [getFromSheet()](../../com.aspose.diagram/connect\#getFromSheet--) |
| [setToCell(String value)](#setToCell-java.lang.String-) | For the description of this property, please see [getToCell()](../../com.aspose.diagram/connect\#getToCell--) |
| [setToPart(int value)](#setToPart-int-) | For the description of this property, please see [getToPart()](../../com.aspose.diagram/connect\#getToPart--) |
| [setToSheet(long value)](#setToSheet-long-) | For the description of this property, please see [getToSheet()](../../com.aspose.diagram/connect\#getToSheet--) |
| [toString()](#toString--) |  |
| [wait()](#wait--) |  |
| [wait(long arg0)](#wait-long-) |  |
| [wait(long arg0, int arg1)](#wait-long-int-) |  |
### Connect() {#Connect--}
```
public Connect()
```


Constructor.

### deepClone() {#deepClone--}
```
public Object deepClone()
```


Creates deep copy of this instance.

**Returns:**
java.lang.Object - 
### equals(Object arg0) {#equals-java.lang.Object-}
```
public boolean equals(Object arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | java.lang.Object |  |

**Returns:**
boolean
### getClass() {#getClass--}
```
public final native Class<?> getClass()
```




**Returns:**
java.lang.Class<?>
### getFromCell() {#getFromCell--}
```
public String getFromCell()
```


The cell from which a connection is made.

**Returns:**
java.lang.String
### getFromPart() {#getFromPart--}
```
public int getFromPart()
```


The cell from which a connection originates.

**Returns:**
int
### getFromSheet() {#getFromSheet--}
```
public long getFromSheet()
```


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

**Returns:**
long
### getToCell() {#getToCell--}
```
public String getToCell()
```


The cell to which a connection is made.

**Returns:**
java.lang.String
### getToPart() {#getToPart--}
```
public int getToPart()
```


The part of a shape to which a connection is made.

**Returns:**
int
### getToSheet() {#getToSheet--}
```
public long getToSheet()
```


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

**Returns:**
long
### hashCode() {#hashCode--}
```
public native int hashCode()
```




**Returns:**
int
### notify() {#notify--}
```
public final native void notify()
```




### notifyAll() {#notifyAll--}
```
public final native void notifyAll()
```




### setFromCell(String value) {#setFromCell-java.lang.String-}
```
public void setFromCell(String value)
```


For the description of this property, please see [getFromCell()](../../com.aspose.diagram/connect\#getFromCell--)

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.lang.String |  |

### setFromPart(int value) {#setFromPart-int-}
```
public void setFromPart(int value)
```


For the description of this property, please see [getFromPart()](../../com.aspose.diagram/connect\#getFromPart--)

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int |  |

### setFromSheet(long value) {#setFromSheet-long-}
```
public void setFromSheet(long value)
```


For the description of this property, please see [getFromSheet()](../../com.aspose.diagram/connect\#getFromSheet--)

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | long |  |

### setToCell(String value) {#setToCell-java.lang.String-}
```
public void setToCell(String value)
```


For the description of this property, please see [getToCell()](../../com.aspose.diagram/connect\#getToCell--)

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.lang.String |  |

### setToPart(int value) {#setToPart-int-}
```
public void setToPart(int value)
```


For the description of this property, please see [getToPart()](../../com.aspose.diagram/connect\#getToPart--)

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int |  |

### setToSheet(long value) {#setToSheet-long-}
```
public void setToSheet(long value)
```


For the description of this property, please see [getToSheet()](../../com.aspose.diagram/connect\#getToSheet--)

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | long |  |

### toString() {#toString--}
```
public String toString()
```




**Returns:**
java.lang.String
### wait() {#wait--}
```
public final void wait()
```




### wait(long arg0) {#wait-long-}
```
public final native void wait(long arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |

### wait(long arg0, int arg1) {#wait-long-int-}
```
public final void wait(long arg0, int arg1)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |
| arg1 | int |  |

