---
title: index
framework: pdfkit
role: symbol
role_heading: Instance Property
path: pdfkit/pdfoutline/index
---

# index

Returns the index of the outline.

## Declaration

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

## Discussion

Discussion The index of the outline object is relative to its siblings and from the perspective of the parent of the outline object. The root outline object, and any outline object without a parent, has an index value of 0.

## See Also

### Getting Information About an Outline

- [document](pdfkit/pdfoutline/document.md)
- [numberOfChildren](pdfkit/pdfoutline/numberofchildren.md)
- [parent](pdfkit/pdfoutline/parent.md)
- [child(at:)](pdfkit/pdfoutline/child(at:).md)
