documentType
The document type.
Declaration
static let documentType: NSAttributedString.DocumentAttributeKeyDiscussion
The value of this attribute is one of the document types declared in NSAttributedString.DocumentType. For reader methods, this key in options can specify the document type for interpreting the contents. Upon return, the document attributes can contain this key for indicating the actual format used to read the contents. For write methods, this key specifies the format for generating the data.
The string constant in macOS 10.3 and earlier is @"DocumentType".