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

# attributedText

A string of attributed text.

```
@NSCopying var attributedText: NSAttributedString? { get set }
```

## Discussion

You cannot change the value of this property once drawing begins for a print job. The delegate method [`printInteractionControllerWillStartJob(_:)`](/documentation/UIKit/UIPrintInteractionControllerDelegate/printInteractionControllerWillStartJob(_:)) is called immediately before the formatting is set for the job.

Assigning a value to this property also replaces the value in the [`text`](/documentation/UIKit/UISimpleTextPrintFormatter/text) property with the same string data, albeit without any formatting information.

## See Also

[`-  initWithAttributedText:`](/documentation/UIKit/UISimpleTextPrintFormatter/init(attributedText:))

Returns a simple-text print formatter initialized with attributed text.



---

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)