<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTypesetter/attributesForExtraLineFragment",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTypesetter(py)attributesForExtraLineFragment"
  },
  "title" : "attributesForExtraLineFragment"
}
-->

# attributesForExtraLineFragment

Returns the attributes used to lay out the extra line fragment.

```
var attributesForExtraLineFragment: [NSAttributedString.Key : Any] { get }
```

## Return Value

A dictionary of attributes used to lay out the extra line fragment.

## Discussion

The default implementation tries to use the `NSTextView` method [`typingAttributes`](/documentation/AppKit/NSTextView/typingAttributes) if possible; otherwise, it uses the attributes for the last character.

---

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)