Contents

NSAttributedString.DocumentAttributeKey

The attributes you apply to an entire document.

Declaration

struct DocumentAttributeKey

Overview

The NSAttributedString.DocumentAttributeKey type defines attributes that apply to an entire attributed string, and not to specific ranges of characters. You specify these attributes when writing an attributed string to disk, or reading text from a file on disk. Use these attributes to specify metadata about the overall document, including its author or title, page margin details, font-scaling options for cross-platform interchange, and more.

Topics

Getting document type keys

Getting document metadata keys

Getting document appearance keys

Getting the font-scaling options

Getting the default attributes

Initializers

Type Properties

See Also

Getting document-wide attributes