---
title: plain
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/nsattributedstring/documenttype/plain
---

# plain

Plain text document.

## Declaration

```swift
static let plain: NSAttributedString.DocumentType
```

## See Also

### Getting keys for document types

- [docFormat](foundation/nsattributedstring/documenttype/docformat.md)
- [html](foundation/nsattributedstring/documenttype/html.md)
- [macSimpleText](foundation/nsattributedstring/documenttype/macsimpletext.md)
- [officeOpenXML](foundation/nsattributedstring/documenttype/officeopenxml.md)
- [openDocument](foundation/nsattributedstring/documenttype/opendocument.md)
- [rtf](foundation/nsattributedstring/documenttype/rtf.md)
- [rtfd](foundation/nsattributedstring/documenttype/rtfd.md)
- [webArchive](foundation/nsattributedstring/documenttype/webarchive.md)
- [wordML](foundation/nsattributedstring/documenttype/wordml.md)
