TextFormatIcon

An icon that is displayed in a `https://developers.google.com/apps-script/reference/add-ons-response-service/text-format-chip`.

Only available for Google Workspace add-ons that extend Google Workspace Studio.

Sample usage:

```javascript
const icon = AddOnsResponseService.newTextFormatIcon()
      .setMaterialIconName("check_box");
```

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/add-ons-response-service/text-format-icon#setIconUrl(String)` | `https://developers.google.com/apps-script/reference/add-ons-response-service/text-format-icon#` | Sets the icon URL. |
| `https://developers.google.com/apps-script/reference/add-ons-response-service/text-format-icon#setMaterialIconName(String)` | `https://developers.google.com/apps-script/reference/add-ons-response-service/text-format-icon#` | Sets the material icon name defined in Google Material Icons. |

## Detailed documentation

### `setIconUrl(iconUrl)`

Sets the icon URL.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `iconUrl` | `String` | The destination URL of the icon. |

#### Return


`https://developers.google.com/apps-script/reference/add-ons-response-service/text-format-icon#` --- This text format icon object.

*** ** * ** ***

### `setMaterialIconName(materialIconName)`

Sets the material icon name defined in Google Material Icons.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `materialIconName` | `String` | The material icon name to set. |

#### Return


`https://developers.google.com/apps-script/reference/add-ons-response-service/text-format-icon#` --- This text format icon object.