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

# setPanelType(_:)

Sets the style of the candidates window.

## Declaration

```swift
func setPanelType(_ panelType: IMKCandidatePanelType)
```

## Parameters

- `panelType`: A doc://com.apple.inputmethodkit/documentation/InputMethodKit/IMKCandidatePanelType constant that represents the style of the candidates window.

## See Also

### Managing Window Type and Text Attributes

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