Returns the attributed string for the provided range of text.
Original signature is '- (NSAttributedString*)attributedSubstringFromRange:(NSRange)range'
Available in Mac OS X v10.5 and later.

C# | Visual Basic | Visual C++ |
NSAttributedString AttributedSubstringFromRange( NSRange range )
Function AttributedSubstringFromRange ( _ range As NSRange _ ) As NSAttributedString
NSAttributedString^ AttributedSubstringFromRange( NSRange range )

- range (NSRange)
- The range of text, relative to the document, that specifies the string to retrieve.

The attributed string. See the CTStringAttributes.h header file for the attributes that can be included in this string. If the client does not support the TSMDocumentAccess protocol, the returned string is created from data obtained by sending the client application a kEventTextInputGetSelectedText Carbon event. The returned NSAttributedString object is an autoreleased object.

- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)