
## ShapePathPointCollection class

Represents all shape path points.

```javascript
class ShapePathPointCollection implements Iterable<ShapePathPoint>;
```


## Constructors

| Constructor | Description |
| --- | --- |
| [constructor()](#constructor--)| Default Constructor. |

## Methods

| Method | Description |
| --- | --- |
| [get(number)](#get-number-)| Gets shape path point by index. |
| [add(number, number)](#add-number-number-)| Adds a path point in unit of EMUs. |
| [getCount()](#getCount--)| <b>@deprecated.</b> Please use the 'count' property instead. Gets the number of elements contained in. |
| [isNull()](#isNull--)| Checks whether the implementation object is null. |

## \[Symbol.iterator\](): Iterator\<ShapePathPoint\>

Returns an iterator over the items in the collection. Enables use of `for...of`, spread syntax, and `Array.from()`.



### constructor() {#constructor--}

Default Constructor.

```javascript
constructor();
```


### get(number) {#get-number-}

Gets shape path point by index.

```javascript
get(index: number) : ShapePathPoint;
```

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| index | number | The index |

**Returns**

Returns [ShapePathPoint](../shapepathpoint/) object

### add(number, number) {#add-number-number-}

Adds a path point in unit of EMUs.

```javascript
add(x: number, y: number) : number;
```

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| x | number | The x coordinate. |
| y | number | The y coordinate. |

**Remarks**

NOTE: This member is now obsolete. Instead, please use the MoveTo,LineTo,CubicBezierTo and ArcTo methods in ShapePath. This method will be removed 12 months later since August 2025. Aspose apologizes for any inconvenience you may have experienced.

### getCount() {#getCount--}

<b>@deprecated.</b> Please use the 'count' property instead. Gets the number of elements contained in.

```javascript
getCount() : number;
```


### isNull() {#isNull--}

Checks whether the implementation object is null.

```javascript
isNull() : boolean;
```



