---
title: "removeRenderingAttribute(_:for:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstextlayoutmanager/removerenderingattribute(_:for:)"
---

# removeRenderingAttribute(_:for:)

Removes the rendering attribute from the specified text range.

## Declaration

```swift
func removeRenderingAttribute(_ renderingAttribute: NSAttributedString.Key, for textRange: NSTextRange)
```

## Parameters

- `renderingAttribute`: The doc://com.apple.documentation/documentation/Foundation/NSAttributedString/Key attribute to remove
- `textRange`: The range over which to remove the rendering attribute.

## See Also

### Adjusting rendering

- [linkRenderingAttributes](appkit/nstextlayoutmanager/linkrenderingattributes.md)
- [addRenderingAttribute(_:value:for:)](appkit/nstextlayoutmanager/addrenderingattribute(_:value:for:).md)
- [enumerateRenderingAttributes(from:reverse:using:)](appkit/nstextlayoutmanager/enumeraterenderingattributes(from:reverse:using:).md)
- [renderingAttributes(forLink:at:)](appkit/nstextlayoutmanager/renderingattributes(forlink:at:).md)
- [invalidateRenderingAttributes(for:)](appkit/nstextlayoutmanager/invalidaterenderingattributes(for:).md)
- [setRenderingAttributes(_:for:)](appkit/nstextlayoutmanager/setrenderingattributes(_:for:).md)
