Enum AutofitType
自動調整類型
自動調整類型。
如要呼叫列舉,請呼叫其父項類別、名稱和屬性。例如
SlidesApp.AutofitType.TEXT_AUTOFIT
。
屬性
屬性 | 類型 | 說明 |
UNSUPPORTED | Enum | 系統不支援的自動調整類型。 |
NONE | Enum | 未套用自動調整功能。 |
TEXT_AUTOFIT | Enum | 縮小溢位文字。 |
SHAPE_AUTOFIT | Enum | 根據文字調整形狀大小。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-12-02 (世界標準時間)。
[null,null,["上次更新時間:2024-12-02 (世界標準時間)。"],[[["`AutofitType` defines how elements, like text or shapes, automatically adjust their size within Google Slides."],["It offers options like `TEXT_AUTOFIT` to shrink overflowing text and `SHAPE_AUTOFIT` to resize shapes to fit content, alongside `NONE` for no autofit and `UNSUPPORTED` for unviable types."],["To use an `AutofitType`, specify it using the format `SlidesApp.AutofitType.[property]`, for example, `SlidesApp.AutofitType.TEXT_AUTOFIT`."]]],["`AutofitType` defines how text behaves within a shape. It's accessed via `SlidesApp.AutofitType`. The properties include: `UNSUPPORTED` (for unsupported autofit), `NONE` (no autofit), `TEXT_AUTOFIT` (text shrinks on overflow), and `SHAPE_AUTOFIT` (shape resizes to fit text). These enums manage the behavior of text content within shapes in terms of scaling or shape adjustment.\n"]]