Class 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 - 用于链接的此工作流文本格式对象。