---
title: NSTextLayoutFragment.EnumerationOptions
framework: uikit
role: symbol
role_heading: Structure
path: uikit/nstextlayoutfragment/enumerationoptions
---

# NSTextLayoutFragment.EnumerationOptions

Values that describe options for enumerating text layout fragments.

## Declaration

```swift
struct EnumerationOptions
```

## Topics

### Creating a layout fragment enumeration

- [init(rawValue:)](uikit/nstextlayoutfragment/enumerationoptions/init(rawvalue:).md)

### Layout fragment characteristics

- [ensuresExtraLineFragment](uikit/nstextlayoutfragment/enumerationoptions/ensuresextralinefragment.md)
- [ensuresLayout](uikit/nstextlayoutfragment/enumerationoptions/ensureslayout.md)
- [estimatesSize](uikit/nstextlayoutfragment/enumerationoptions/estimatessize.md)
- [reverse](uikit/nstextlayoutfragment/enumerationoptions/reverse.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)

## See Also

### Accessing and updating the text

- [enumerateTextElements(from:options:using:)](uikit/nstextelementprovider/enumeratetextelements(from:options:using:).md)
- [location(_:offsetBy:)](uikit/nstextelementprovider/location(_:offsetby:).md)
- [replaceContents(in:with:)](uikit/nstextelementprovider/replacecontents(in:with:).md)
