說明形狀的自動調整大小設定。如果進行的變更可能會影響文字在文字方塊中的顯示方式:
- 自動調整功能已停用,並設為
AutofitType.NONE。 - 字型比例會重設為預設值,並套用至字型大小。
- 行距縮減會重設為預設值,並套用至行距。
方法
| 方法 | 傳回類型 | 簡短說明 |
|---|---|---|
disable | Autofit | 將形狀的 Autofit 設為 Autofit。 |
get | Autofit | 取得形狀的 Autofit。 |
get | Number | 取得套用至圖案的字型比例。 |
get | Number | 取得套用至形狀的行距縮減量。 |
內容詳盡的說明文件
disableAutofit()
將形狀的 AutofitType 設為 AutofitType.NONE。
回攻員
Autofit:用於串連的自動調整大小。
授權
使用這個方法的指令碼需要下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
getAutofitType()
取得形狀的 AutofitType。
回攻員
AutofitType:自動調整類型。
授權
使用這個方法的指令碼需要下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
getFontScale()
取得套用至圖案的字型比例。如果是 AutofitType、AutofitType.NONE 或 AutofitType.SHAPE_AUTOFIT 形狀,這個值是預設值 1。如果是 AutofitType.TEXT_AUTOFIT,傳回的值是原始字型大小乘以的倍數,可讓文字符合形狀大小。
回攻員
Number:字型比例。
授權
使用這個方法的指令碼需要下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
getLineSpacingReduction()
取得套用至形狀的行距縮減量。如果是 AutofitType、AutofitType.NONE 或 AutofitType.SHAPE_AUTOFIT 形狀,這個值為預設值 0。如果是 AutofitType.TEXT_AUTOFIT,傳回的值是從原始間距減去的間距量,可讓文字符合形狀大小。
回攻員
Number:行距。
授權
使用這個方法的指令碼需要下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations