---
title: rangesForUserCharacterAttributeChange
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstextview/rangesforusercharacterattributechange
---

# rangesForUserCharacterAttributeChange

An array containing the ranges of characters affected by an action method that changes character (not paragraph) attributes.

## Declaration

```swift
var rangesForUserCharacterAttributeChange: [NSValue]? { get }
```

## Discussion

Discussion An array containing the ranges of characters affected by an action method that changes character (not paragraph) attributes, such as the NSText action method changeFont(_:). For rich text these ranges are typically the ranges of the selections. For plain text the range is the entire contents of the receiver.

## See Also

### Related Documentation

- [usesFontPanel](appkit/nstextview/usesfontpanel.md)
- [isEditable](appkit/nstextview/iseditable.md)

### Customizing subclass behaviors

- [updateFontPanel()](appkit/nstextview/updatefontpanel().md)
- [updateRuler()](appkit/nstextview/updateruler().md)
- [acceptableDragTypes](appkit/nstextview/acceptabledragtypes.md)
- [updateDragTypeRegistration()](appkit/nstextview/updatedragtyperegistration().md)
- [selectionRange(forProposedRange:granularity:)](appkit/nstextview/selectionrange(forproposedrange:granularity:).md)
- [rangeForUserCharacterAttributeChange](appkit/nstextview/rangeforusercharacterattributechange.md)
- [rangeForUserParagraphAttributeChange](appkit/nstextview/rangeforuserparagraphattributechange.md)
- [rangesForUserParagraphAttributeChange](appkit/nstextview/rangesforuserparagraphattributechange.md)
- [rangeForUserTextChange](appkit/nstextview/rangeforusertextchange.md)
- [rangesForUserTextChange](appkit/nstextview/rangesforusertextchange.md)
- [shouldChangeText(in:replacementString:)](appkit/nstextview/shouldchangetext(in:replacementstring:).md)
- [shouldChangeText(inRanges:replacementStrings:)](appkit/nstextview/shouldchangetext(inranges:replacementstrings:).md)
- [didChangeText()](appkit/nstextview/didchangetext().md)
- [smartInsertDeleteEnabled](appkit/nstextview/smartinsertdeleteenabled.md)
- [smartDeleteRange(forProposedRange:)](appkit/nstextview/smartdeleterange(forproposedrange:).md)
