---
title: attributedText
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uisimpletextprintformatter/attributedtext
---

# attributedText

A string of attributed text.

## Declaration

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

## Discussion

Discussion You cannot change the value of this property once drawing begins for a print job. The delegate method 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 property with the same string data, albeit without any formatting information.

## See Also

### Related Documentation

- [init(attributedText:)](uikit/uisimpletextprintformatter/init(attributedtext:).md)

### Getting and setting the text

- [text](uikit/uisimpletextprintformatter/text.md)
