Class ListItem

列表

一个列表项,其中每个列表项可以包含多个 TextFormatElement

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

const listItem = AddOnsResponseService.newListItem()
      .addTextFormatElements(AddOnsResponseService.newStyledText());

方法

方法返回类型简介
addTextFormatElement(textFormatElement)ListItem向列表项添加 TextFormatElement

详细文档

addTextFormatElement(textFormatElement)

向列表项添加 TextFormatElement

参数

名称类型说明
textFormatElementTextFormatElement要添加到列表项中的 TextFormatElement

返回

ListItem - 用于链式调用的相应列表项对象。