---
title: spellCheckerDocumentTag
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstextview/spellcheckerdocumenttag
---

# spellCheckerDocumentTag

A tag identifying the text view’s text as a document for the spell checker server.

## Declaration

```swift
var spellCheckerDocumentTag: Int { get }
```

## Discussion

Discussion The document tag is obtained by sending a uniqueSpellDocumentTag() message to the spell server the first time this method is invoked for a particular group of text views. See the NSSpellCheckerand NSSpellServerclass specifications for more information on how this tag is used.

## See Also

### Working with the spelling checker

- [isContinuousSpellCheckingEnabled](appkit/nstextview/iscontinuousspellcheckingenabled.md)
- [toggleContinuousSpellChecking(_:)](appkit/nstextview/togglecontinuousspellchecking(_:).md)
- [isGrammarCheckingEnabled](appkit/nstextview/isgrammarcheckingenabled.md)
- [toggleGrammarChecking(_:)](appkit/nstextview/togglegrammarchecking(_:).md)
- [setSpellingState(_:range:)](appkit/nstextview/setspellingstate(_:range:).md)
