---
title: "replaceCharacters(in:withAnnotatedString:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstextcheckingclient/replacecharacters(in:withannotatedstring:)"
---

# replaceCharacters(in:withAnnotatedString:)

## Declaration

```swift
func replaceCharacters(in range: NSRange, withAnnotatedString annotatedString: NSAttributedString)
```

## See Also

### Instance Methods

- [addAnnotations(_:range:)](appkit/nstextcheckingclient/addannotations(_:range:).md)
- [annotatedSubstring(forProposedRange:actualRange:)](appkit/nstextcheckingclient/annotatedsubstring(forproposedrange:actualrange:).md)
- [candidateListTouchBarItem()](appkit/nstextcheckingclient/candidatelisttouchbaritem().md)
- [removeAnnotation(_:range:)](appkit/nstextcheckingclient/removeannotation(_:range:).md)
- [selectAndShow(_:)](appkit/nstextcheckingclient/selectandshow(_:).md)
- [setAnnotations(_:range:)](appkit/nstextcheckingclient/setannotations(_:range:).md)
- [view(for:firstRect:actualRange:)](appkit/nstextcheckingclient/view(for:firstrect:actualrange:).md)
