Class WorkflowTextFormat

WorkflowTextFormat

一个文本块,其中包含丰富的格式设置选项,包括在 TextFormatElement 中定义的样式、超链接和互动元素。一个 WorkflowTextFormat 可以包含一个或多个 TextFormatElement

仅适用于扩展 Google Workspace Studio 的 Google Workspace 插件。

用法示例:

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

方法

方法返回值类型简介
addTextFormatElement(textFormatElement)WorkflowTextFormat向工作流文本格式添加 TextFormatElement

详细文档

addTextFormatElement(textFormatElement)

向工作流文本格式添加 TextFormatElement

参数

名称类型说明
textFormatElementTextFormatElement要添加的文本格式元素。

返回

WorkflowTextFormat - 此工作流文本格式对象,用于链接。