---
title: elementCount
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsbezierpath/elementcount
---

# elementCount

The total number of path elements in the path.

## Declaration

```swift
var elementCount: Int { get }
```

## Discussion

Discussion Each element type corresponds to one of the operations described in Path Elements.

## See Also

### Accessing Elements of a Path

- [cgPath](appkit/nsbezierpath/cgpath.md)
- [element(at:)](appkit/nsbezierpath/element(at:).md)
- [element(at:associatedPoints:)](appkit/nsbezierpath/element(at:associatedpoints:).md)
- [removeAllPoints()](appkit/nsbezierpath/removeallpoints().md)
- [setAssociatedPoints(_:at:)](appkit/nsbezierpath/setassociatedpoints(_:at:).md)
