---
title: NSWritingDirectionFormatType
framework: appkit
role: symbol
role_heading: Enumeration
path: appkit/nswritingdirectionformattype
---

# NSWritingDirectionFormatType

Constants for the writing direction attribute key.

## Declaration

```swift
enum NSWritingDirectionFormatType
```

## Overview

Overview Use these constants as the values for the writingDirection key. You can use the logical OR operator to combine these constants with NSWritingDirection.leftToRight or NSWritingDirection.rightToLeft when used with writingDirection to specify formatting controls defined by the Unicode Bidirectional Algorithm in Unicode Standard Annex #9.

## Topics

### Constants

- [NSWritingDirectionFormatType.embedding](appkit/nswritingdirectionformattype/embedding.md)
- [NSWritingDirectionFormatType.override](appkit/nswritingdirectionformattype/override.md)

### Initializers

- [init(rawValue:)](appkit/nswritingdirectionformattype/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Getting text content attributes

- [NSUnderlineStyle](appkit/nsunderlinestyle.md)
