---
title: "subscriptRange(_:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsmutableattributedstring/subscriptrange(_:)"
---

# subscriptRange(_:)

Decrements the value of the superscript attribute for characters in the specified range by one.

## Declaration

```swift
func subscriptRange(_ range: NSRange)
```

## Parameters

- `range`: The range of characters.

## Discussion

Discussion Raises an rangeException if any part of range lies beyond the end of the receiver’s characters.

## See Also

### Changing Attributes

- [setAttributes(_:range:)](foundation/nsmutableattributedstring/setattributes(_:range:).md)
- [addAttribute(_:value:range:)](foundation/nsmutableattributedstring/addattribute(_:value:range:).md)
- [addAttributes(_:range:)](foundation/nsmutableattributedstring/addattributes(_:range:).md)
- [removeAttribute(_:range:)](foundation/nsmutableattributedstring/removeattribute(_:range:).md)
- [applyFontTraits(_:range:)](foundation/nsmutableattributedstring/applyfonttraits(_:range:).md)
- [setAlignment(_:range:)](foundation/nsmutableattributedstring/setalignment(_:range:).md)
- [setBaseWritingDirection(_:range:)](foundation/nsmutableattributedstring/setbasewritingdirection(_:range:).md)
- [superscriptRange(_:)](foundation/nsmutableattributedstring/superscriptrange(_:).md)
- [unscriptRange(_:)](foundation/nsmutableattributedstring/unscriptrange(_:).md)
