---
title: "setSelectedAttributes(_:isMultiple:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsfontmanager/setselectedattributes(_:ismultiple:)"
---

# setSelectedAttributes(_:isMultiple:)

Informs the Font panel that the specified font attributes changed for the selected text.

## Declaration

```swift
func setSelectedAttributes(_ attributes: [String : Any], isMultiple flag: Bool)
```

## Parameters

- `attributes`: The new attributes.
- `flag`: If doc://com.apple.documentation/documentation/Swift/true, informs the panel that multiple fonts or attributes are enclosed within the selection.

## Discussion

Discussion This method is used primarily by NSTextView.

## See Also

### Setting Attributes

- [convertAttributes(_:)](appkit/nsfontmanager/convertattributes(_:).md)
