Pour appeler un énumération, vous devez appeler sa classe parente, son nom et sa propriété. Par exemple,
SlidesApp.AutofitType.TEXT_AUTOFIT.
Propriétés
Propriété
Type
Description
UNSUPPORTED
Enum
Type d'ajustement automatique non accepté.
NONE
Enum
L'ajustement automatique n'est pas appliqué.
TEXT_AUTOFIT
Enum
Réduit le texte en cas de dépassement.
SHAPE_AUTOFIT
Enum
Redimensionne la forme pour l'adapter au texte.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2024/12/02 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Il n'y a pas l'information dont j'ai besoin","missingTheInformationINeed","thumb-down"],["Trop compliqué/Trop d'étapes","tooComplicatedTooManySteps","thumb-down"],["Obsolète","outOfDate","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Mauvais exemple/Erreur de code","samplesCodeIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2024/12/02 (UTC)."],[[["`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"]]