<!--
{
  "documentType" : "article",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/text-specific-parameterized-attributes",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Text-Specific Parameterized Attributes"
}
-->

# Text-Specific Parameterized Attributes

Parameterized attributes specific to text.

## Topics

### Constants

[`static let lineForIndex: NSAccessibility.ParameterizedAttribute`](/documentation/AppKit/NSAccessibility-swift.struct/ParameterizedAttribute/lineForIndex)

The line number (`NSNumber`) of the specified character (`NSNumber`).

[`static let rangeForLine: NSAccessibility.ParameterizedAttribute`](/documentation/AppKit/NSAccessibility-swift.struct/ParameterizedAttribute/rangeForLine)

The range of characters (`NSValue` containing an `NSRange` value) corresponding to the specified line number (`NSNumber`).

[`static let stringForRange: NSAccessibility.ParameterizedAttribute`](/documentation/AppKit/NSAccessibility-swift.struct/ParameterizedAttribute/stringForRange)

The substring (`NSString`) specified by the range (`NSValue` containing an `NSRange` value).

[`static let rangeForPosition: NSAccessibility.ParameterizedAttribute`](/documentation/AppKit/NSAccessibility-swift.struct/ParameterizedAttribute/rangeForPosition)

The range of characters (`NSValue` containing an `NSRange` value) composing the glyph at the specified point (`NSValue` containing an `NSPoint` value).

[`static let rangeForIndex: NSAccessibility.ParameterizedAttribute`](/documentation/AppKit/NSAccessibility-swift.struct/ParameterizedAttribute/rangeForIndex)

The full range of characters (`NSValue` containing an `NSRange` value), including the specified character, which compose a single glyph (`NSNumber`).

[`static let boundsForRange: NSAccessibility.ParameterizedAttribute`](/documentation/AppKit/NSAccessibility-swift.struct/ParameterizedAttribute/boundsForRange)

The rectangle (`NSValue` containing an `NSRect` value) enclosing the specified range of characters (`NSValue` containing an `NSRange` value). If the range crosses a line boundary, the returned rectangle will fully enclose all the lines of characters.

[`static let rtfForRange: NSAccessibility.ParameterizedAttribute`](/documentation/AppKit/NSAccessibility-swift.struct/ParameterizedAttribute/rtfForRange)

The RTF data (`NSData`) describing the specified range of characters (`NSValue` containing an `NSRange` value).

[`static let styleRangeForIndex: NSAccessibility.ParameterizedAttribute`](/documentation/AppKit/NSAccessibility-swift.struct/ParameterizedAttribute/styleRangeForIndex)

The full range of characters (`NSValue` containing an `NSRange` value), including the specified character (`NSNumber`), which have the same style.

[`static let attributedStringForRange: NSAccessibility.ParameterizedAttribute`](/documentation/AppKit/NSAccessibility-swift.struct/ParameterizedAttribute/attributedStringForRange)

Does not use attributes from Appkit/AttributedString.h (`NSAttributedString`).



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)