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

# text

A string of plain text.

```
var text: String? { 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 replaces the value in the [`attributedText`](/documentation/UIKit/UISimpleTextPrintFormatter/attributedText) property with the same string data, albeit without any inherent style attributes. Instead, the print formatter styles the new string using the text attribute properties of this class.

## See Also

[`init(text:)`](/documentation/UIKit/UISimpleTextPrintFormatter/init(text:))

Returns a simple-text print formatter initialized with plain 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)