---
title: "annotatedSubstring(forProposedRange:actualRange:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstextcheckingclient/annotatedsubstring(forproposedrange:actualrange:)"
---

# annotatedSubstring(forProposedRange:actualRange:)

## Declaration

```swift
func annotatedSubstring(forProposedRange range: NSRange, actualRange: NSRangePointer?) -> NSAttributedString?
```

## See Also

### Instance Methods

- [addAnnotations(_:range:)](appkit/nstextcheckingclient/addannotations(_:range:).md)
- [candidateListTouchBarItem()](appkit/nstextcheckingclient/candidatelisttouchbaritem().md)
- [removeAnnotation(_:range:)](appkit/nstextcheckingclient/removeannotation(_:range:).md)
- [replaceCharacters(in:withAnnotatedString:)](appkit/nstextcheckingclient/replacecharacters(in:withannotatedstring:).md)
- [selectAndShow(_:)](appkit/nstextcheckingclient/selectandshow(_:).md)
- [setAnnotations(_:range:)](appkit/nstextcheckingclient/setannotations(_:range:).md)
- [view(for:firstRect:actualRange:)](appkit/nstextcheckingclient/view(for:firstrect:actualrange:).md)
