---
title: attributes()
framework: InputMethodKit
role: symbol
role_heading: Instance Method
platforms: [macOS 10.5+]
path: inputmethodkit/imkcandidates/attributes()
---

# attributes()

Returns a dictionary of the style attributes used for the candidates window..

## Declaration

```swift
func attributes() -> [AnyHashable : Any]!
```

## Return Value

Return Value The dictionary that contains the keys and values for the styles.

## See Also

### Managing Window Type and Text Attributes

- [panelType()](inputmethodkit/imkcandidates/paneltype().md)
- [setPanelType(_:)](inputmethodkit/imkcandidates/setpaneltype(_:).md)
- [setAttributes(_:)](inputmethodkit/imkcandidates/setattributes(_:).md)
