Returns the type of path element at the specified index.
- macOS 10.0+
The index of the desired path element.
The type of the path element. For a list of constants, see
Path elements describe the commands used to define a path and include basic commands such as moving to a specific point, creating a line segment, creating a curve, or closing the path. The elements are stored in the order of their execution.