# Class WorkflowTextFormat

WorkflowTextFormat

A block of text with rich formatting options including styles, hyperlinks, and interactive
elements defined in `TextFormatElement`. A WorkflowTextFormat can contain one or more
`TextFormatElement`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 |
|---|---|---|
| `addTextFormatElement(textFormatElement)` | `WorkflowTextFormat` | Adds a `TextFormatElement` to the workflow text format. |

## Detailed documentation

### `addTextFormatElement(textFormatElement)`

Adds a `TextFormatElement` to the workflow text format.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `textFormatElement` | `TextFormatElement` | The text format element to be added. |

#### Return


`WorkflowTextFormat` --- This workflow text format object, for chaining.