Instance Property

text

A string of plain text.

Declaration

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(_:) is called immediately before the formatting is set for the job.

Assigning a value to this property replaces the value in the 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

Getting and Setting the Text

var attributedText: NSAttributedString?

A string of attributed text.