Class TextFormatIcon

文字格式圖示

顯示在 TextFormatChip 中的圖示。

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

用法範例:

const icon = AddOnsResponseService.newTextFormatIcon()
      .setMaterialIconName("check_box");

方法

方法傳回類型簡短說明
setIconUrl(iconUrl)TextFormatIcon設定圖示網址。
setMaterialIconName(materialIconName)TextFormatIcon設定 Google Material Icons 中定義的材質圖示名稱。

內容詳盡的說明文件

setIconUrl(iconUrl)

設定圖示網址。

參數

名稱類型說明
iconUrlString圖示的到達網頁網址。

回攻員

TextFormatIcon:這個文字格式圖示物件。


setMaterialIconName(materialIconName)

設定 Google Material Icons 中定義的材質圖示名稱。

參數

名稱類型說明
materialIconNameString要設定的 Material Icons 名稱。

回攻員

TextFormatIcon:這個文字格式圖示物件。