Returns the value of a given attribute of an attributed string at a specified location.
- iOS 2.0+
- macOS 10.4+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Core Foundation
The attributed string to examine.
The location in
strat which to determine the attributes.
locmust not exceed the bounds of
The name of the attribute whose value you want to determine.
NULL, upon return contains a range including
locover which exactly the same set of attributes apply as at
The value of the specified attribute at the specified location in
str. Ownership follows the The Get Rule.
For performance reasons, a range returned in
effective is not necessarily the maximal range. If you need the maximum range, you should use