---
title: extraLineFragmentRect
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/nslayoutmanager/extralinefragmentrect
---

# extraLineFragmentRect

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

## Declaration

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

## Discussion

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

### Related Documentation

- [setExtraLineFragmentRect(_:usedRect:textContainer:)](uikit/nslayoutmanager/setextralinefragmentrect(_:usedrect:textcontainer:).md)

### Getting layout information

- [attachmentSize(forGlyphAt:)](uikit/nslayoutmanager/attachmentsize(forglyphat:).md)
- [drawsOutsideLineFragment(forGlyphAt:)](uikit/nslayoutmanager/drawsoutsidelinefragment(forglyphat:).md)
- [extraLineFragmentTextContainer](uikit/nslayoutmanager/extralinefragmenttextcontainer.md)
- [extraLineFragmentUsedRect](uikit/nslayoutmanager/extralinefragmentusedrect.md)
- [firstUnlaidCharacterIndex()](uikit/nslayoutmanager/firstunlaidcharacterindex().md)
- [firstUnlaidGlyphIndex()](uikit/nslayoutmanager/firstunlaidglyphindex().md)
- [getFirstUnlaidCharacterIndex(_:glyphIndex:)](uikit/nslayoutmanager/getfirstunlaidcharacterindex(_:glyphindex:).md)
- [lineFragmentRect(forGlyphAt:effectiveRange:)](uikit/nslayoutmanager/linefragmentrect(forglyphat:effectiverange:).md)
- [lineFragmentRect(forGlyphAt:effectiveRange:withoutAdditionalLayout:)](uikit/nslayoutmanager/linefragmentrect(forglyphat:effectiverange:withoutadditionallayout:).md)
- [lineFragmentUsedRect(forGlyphAt:effectiveRange:)](uikit/nslayoutmanager/linefragmentusedrect(forglyphat:effectiverange:).md)
- [lineFragmentUsedRect(forGlyphAt:effectiveRange:withoutAdditionalLayout:)](uikit/nslayoutmanager/linefragmentusedrect(forglyphat:effectiverange:withoutadditionallayout:).md)
- [location(forGlyphAt:)](uikit/nslayoutmanager/location(forglyphat:).md)
- [notShownAttribute(forGlyphAt:)](uikit/nslayoutmanager/notshownattribute(forglyphat:).md)
- [truncatedGlyphRange(inLineFragmentForGlyphAt:)](uikit/nslayoutmanager/truncatedglyphrange(inlinefragmentforglyphat:).md)
