Class WorkflowTextFormat

WorkflowTextFormat

一段文字,包含豐富的格式選項,包括 TextFormatElement 中定義的樣式、超連結和互動式元素。WorkflowTextFormat 可包含一或多個 TextFormatElement

僅適用於擴充 Google Workspace Studio 的 Google Workspace 外掛程式。

用法範例:

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

方法

方法傳回類型簡短說明
addTextFormatElement(textFormatElement)WorkflowTextFormatTextFormatElement 新增至工作流程文字格式。

內容詳盡的說明文件

addTextFormatElement(textFormatElement)

TextFormatElement 新增至工作流程文字格式。

參數

名稱類型說明
textFormatElementTextFormatElement要新增的文字格式元素。

回攻員

WorkflowTextFormat - 這個工作流程文字格式物件,用於串連。