WorkflowTextFormat

A block of text with rich formatting options including styles, hyperlinks, and interactive
elements defined in `https://developers.google.com/apps-script/reference/add-ons-response-service/text-format-element`. A WorkflowTextFormat can contain one or more
`https://developers.google.com/apps-script/reference/add-ons-response-service/text-format-element`s.

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

Sample usage:

```javascript
const workflowTextFormat = AddOnsResponseService.newWorkflowTextFormat()
  .addTextFormatElement(
    AddOnsResponseService.newTextFormatElement()
      .setText("example_text")
  );
```

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/add-ons-response-service/workflow-text-format#addTextFormatElement(TextFormatElement)` | `https://developers.google.com/apps-script/reference/add-ons-response-service/workflow-text-format#` | Adds a `https://developers.google.com/apps-script/reference/add-ons-response-service/text-format-element` to the workflow text format. |

## Detailed documentation

### `addTextFormatElement(textFormatElement)`

Adds a `https://developers.google.com/apps-script/reference/add-ons-response-service/text-format-element` to the workflow text format.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `textFormatElement` | `https://developers.google.com/apps-script/reference/add-ons-response-service/text-format-element` | The text format element to be added. |

#### Return


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