<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/NSLayoutManager/extraLineFragmentRect",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSLayoutManager(py)extraLineFragmentRect"
  },
  "title" : "extraLineFragmentRect"
}
-->

# extraLineFragmentRect

The rectangle for the extra line fragment at the end of a document.

```
var extraLineFragmentRect: CGRect { get }
```

## Discussion

The layout manager uses the extra line fragment when the last character in a document causes a line or paragraph break. This extra line fragment has no corresponding glyph.

The rectangle is defined in the coordinate system of its `NSTextContainer`. `NSZeroRect` if there is no such rectangle.

## See Also

[`setExtraLineFragmentRect(_:usedRect:textContainer:)`](/documentation/UIKit/NSLayoutManager/setExtraLineFragmentRect(_:usedRect:textContainer:))

Sets the bounds and container for the extra line fragment.



---

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)