Enum AutofitType
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Adattamento automaticoTipo
I tipi di adattamento automatico.
Per chiamare un enum, devi chiamare la relativa classe, il nome e la proprietà di base. Ad esempio,
SlidesApp.AutofitType.TEXT_AUTOFIT
.
Proprietà
Proprietà | Tipo | Descrizione |
UNSUPPORTED | Enum | Un tipo di adattamento automatico non supportato. |
NONE | Enum | L'adattamento automatico non viene applicato. |
TEXT_AUTOFIT | Enum | Riduci il testo per evitare l'overflow. |
SHAPE_AUTOFIT | Enum | Ridimensiona la forma in modo che si adatti al testo. |
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-26 UTC.
[null,null,["Ultimo aggiornamento 2025-07-26 UTC."],[[["\u003cp\u003e\u003ccode\u003eAutofitType\u003c/code\u003e defines how elements, like text or shapes, automatically adjust their size within Google Slides.\u003c/p\u003e\n"],["\u003cp\u003eIt offers options like \u003ccode\u003eTEXT_AUTOFIT\u003c/code\u003e to shrink overflowing text and \u003ccode\u003eSHAPE_AUTOFIT\u003c/code\u003e to resize shapes to fit content, alongside \u003ccode\u003eNONE\u003c/code\u003e for no autofit and \u003ccode\u003eUNSUPPORTED\u003c/code\u003e for unviable types.\u003c/p\u003e\n"],["\u003cp\u003eTo use an \u003ccode\u003eAutofitType\u003c/code\u003e, specify it using the format \u003ccode\u003eSlidesApp.AutofitType.[property]\u003c/code\u003e, for example, \u003ccode\u003eSlidesApp.AutofitType.TEXT_AUTOFIT\u003c/code\u003e.\u003c/p\u003e\n"]]],["`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"],null,["# Enum AutofitType\n\nAutofitType\n\nThe autofit types.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nSlidesApp.AutofitType.TEXT_AUTOFIT`. \n\n### Properties\n\n| Property | Type | Description |\n|-----------------|--------|----------------------------------------|\n| `UNSUPPORTED` | `Enum` | An autofit type that is not supported. |\n| `NONE` | `Enum` | Autofit isn't applied. |\n| `TEXT_AUTOFIT` | `Enum` | Shrinks the text on overflow. |\n| `SHAPE_AUTOFIT` | `Enum` | Resizes the shape to fit the text. |"]]