
## ShapeSegmentPathCollection class

Represents a creation path consisting of a series of moves, lines and curves that when combined will form a geometric shape.

```js
new ShapeSegmentPathCollection()
```

## Methods

| Name | Description |
| --- | --- |
| [add(type)](#add) | Add a segment path in creation path. |
| [add()](#add-1) | Reserved for internal use. |
| [clear()](#clear) |  |
| [contains()](#contains) | Reserved for internal use. |
| [get(index)](#get) | Gets ShapeSegmentPath object. |
| [get()](#get-1) | Reserved for internal use. |
| [getCount()](#getcount) |  |
| [indexOf()](#indexof) | Reserved for internal use. |
| [iterator()](#iterator) |  |
| [removeAt()](#removeat) |  |

### add(type) {#add}

Add a segment path in creation path.

| Parameter | Type | Description |
| --- | --- | --- |
| type | Number | ShapePathType |

**Returns:** Number — `Number` Returns the position of ShapeSegmentPath object in the list.

### add() {#add-1}

Reserved for internal use.

### clear() {#clear}

### contains() {#contains}

Reserved for internal use.

### get(index) {#get}

Gets ShapeSegmentPath object.

| Parameter | Type | Description |
| --- | --- | --- |
| index | Number | The index. |

**Returns:** ShapeSegmentPath — `ShapeSegmentPath` Returns a ShapeSegmentPath object.

### get() {#get-1}

Reserved for internal use.

### getCount() {#getcount}

### indexOf() {#indexof}

Reserved for internal use.

### iterator() {#iterator}

### removeAt() {#removeat}
