Enum AutofitType
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
AutofitTyp
Die Typen für das automatische Anpassen.
Wenn Sie ein Enum aufrufen möchten, rufen Sie die übergeordnete Klasse, den Namen und die Eigenschaft auf. Beispiel:
SlidesApp.AutofitType.TEXT_AUTOFIT
.
Attribute
Attribut | Typ | Beschreibung |
UNSUPPORTED | Enum | Ein nicht unterstützter Typ für die automatische Anpassung. |
NONE | Enum | Die automatische Anpassung wird nicht angewendet. |
TEXT_AUTOFIT | Enum | Der Text wird bei Überlauf verkleinert. |
SHAPE_AUTOFIT | Enum | Die Größe der Form wird an den Text angepasst. |
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-07-26 (UTC).
[null,null,["Zuletzt aktualisiert: 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. |"]]