---
title: "renderingAttributes(forLink:at:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstextlayoutmanager/renderingattributes(forlink:at:)"
---

# renderingAttributes(forLink:at:)

Returns a dictionary of rendering attributes for rendering a link.

## Declaration

```swift
func renderingAttributes(forLink link: Any, at location: any NSTextLocation) -> [NSAttributedString.Key : Any]
```

## Parameters

- `link`: The link.
- `location`: The location of the link in the text.

## Return Value

Return Value A  dictionary of rendering attributes.

## Discussion

Discussion As with other rendering attributes, specifying NSNull removes the attribute from the final attributes the framework uses for rendering. It has priority over the general rendering attributes.

## 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)
- [invalidateRenderingAttributes(for:)](appkit/nstextlayoutmanager/invalidaterenderingattributes(for:).md)
- [removeRenderingAttribute(_:for:)](appkit/nstextlayoutmanager/removerenderingattribute(_:for:).md)
- [setRenderingAttributes(_:for:)](appkit/nstextlayoutmanager/setrenderingattributes(_:for:).md)
