Enum AutofitType
自动适应类型
自动调整类型。
如需调用枚举,您可以调用其父类、名称和属性。例如
SlidesApp.AutofitType.TEXT_AUTOFIT
。
属性
属性 | 类型 | 说明 |
UNSUPPORTED | Enum | 不受支持的自动调整类型。 |
NONE | Enum | 未应用自动调整。 |
TEXT_AUTOFIT | Enum | 溢出时收缩文本。 |
SHAPE_AUTOFIT | Enum | 根据文本调整形状大小。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-12-02。
[null,null,["最后更新时间 (UTC):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"]]