<!--
{
  "availability" : [
    "macOS: 12.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTextLayoutFragment/EnumerationOptions",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSTextLayoutFragmentEnumerationOptions"
  },
  "title" : "NSTextLayoutFragment.EnumerationOptions"
}
-->

# NSTextLayoutFragment.EnumerationOptions

Values that describe options for enumerating text layout fragments.

```
struct EnumerationOptions
```

## Topics

### Creating a layout fragment enumeration

[`init(rawValue: UInt)`](/documentation/AppKit/NSTextLayoutFragment/EnumerationOptions/init(rawValue:))

Creates an instance of the enumeration with the provided unsigned integer value.

### Layout fragment characteristics

[`static var ensuresExtraLineFragment: NSTextLayoutFragment.EnumerationOptions`](/documentation/AppKit/NSTextLayoutFragment/EnumerationOptions/ensuresExtraLineFragment)

Synthesize the extra line fragment when necessary.

[`static var ensuresLayout: NSTextLayoutFragment.EnumerationOptions`](/documentation/AppKit/NSTextLayoutFragment/EnumerationOptions/ensuresLayout)

When enumerating, tell the layout fragments to layout their contents.

[`static var estimatesSize: NSTextLayoutFragment.EnumerationOptions`](/documentation/AppKit/NSTextLayoutFragment/EnumerationOptions/estimatesSize)

When enumerating, tell the layout fragments to estimate their size.

[`static var reverse: NSTextLayoutFragment.EnumerationOptions`](/documentation/AppKit/NSTextLayoutFragment/EnumerationOptions/reverse)

Causes the enumeration to start from the last element.

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

---

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)