Type Property 型プロパティ

spellingState

The spelling state of the text. テキストの綴り方状態。

Declaration 宣言

static let spellingState: NSAttributedString.Key

Discussion 議論

The value of this attribute is an integer. The default value of this key is 0, which indicates that there are no grammar or spelling errors. Specify a different value to indicate that a spelling or grammar error exists. この属性の値はある整数です。このキーの省略時の値は 0 です、それは文法または綴りの誤りがないことを指し示します。異なる値を指定して、綴りまたは文法の誤りを存在することを指し示してください。

This key is available in macOS 10.2 and later, but its interpretation changed in OS X v10.5. Previously, any non-zero value caused the spelling indicator to be displayed. For macOS 10.5 and later, the (integer) value is treated as being composed of the spelling and grammar flags. See NSSpellingStateAttributeName Flags for possible values. このキーは、macOS 10.2以降で利用できます、しかしそれの解釈はOS X v10.5で変わりました。以前は、あらゆる非ゼロの値は、綴り指示子が表示されるようにします。macOS 10.5以降に対して、その(整数)値は、綴りおよび文法のフラグからなるとみなされます。可能な値のためにNSSpellingStateAttributeName Flagsを見てください。

See Also 参照

Keys キー