<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PaperKit",
  "identifier" : "/documentation/PaperKit/MarkupOrderedSet/ElementIDs",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "PaperKit"
    ],
    "preciseIdentifier" : "s:8PaperKit16MarkupOrderedSetV10ElementIDsV"
  },
  "title" : "MarkupOrderedSet.ElementIDs"
}
-->

# MarkupOrderedSet.ElementIDs

A view of a set’s ids.

```
struct ElementIDs
```

## Topics

### Instance Properties

[`var endIndex: MarkupOrderedSet.ElementIDs.Index`](/documentation/PaperKit/MarkupOrderedSet/ElementIDs/endIndex)

The index past the last element ID.

[`var startIndex: MarkupOrderedSet.ElementIDs.Index`](/documentation/PaperKit/MarkupOrderedSet/ElementIDs/startIndex)

The index of the first element ID.

### Instance Methods

[`func index(after: MarkupOrderedSet.ElementIDs.Index) -> MarkupOrderedSet.ElementIDs.Index`](/documentation/PaperKit/MarkupOrderedSet/ElementIDs/index(after:))

Returns the index after the given index.

### Subscripts

[`subscript(MarkupOrderedSet.ElementIDs.Index) -> MarkupOrderedSet.ElementIDs.Element`](/documentation/PaperKit/MarkupOrderedSet/ElementIDs/subscript(_:))

Accesses the element ID at the specified position.

## Relationships

### Conforms To

[`RandomAccessCollection`](/documentation/Swift/RandomAccessCollection)

[`BidirectionalCollection`](/documentation/Swift/BidirectionalCollection)

[`Collection`](/documentation/Swift/Collection)

[`Sequence`](/documentation/Swift/Sequence)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)