Enum AutofitType
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Automatyczne dopasowanie typu
Typy automatycznego dopasowania.
Aby wywołać enum, wywołaj jego klasę nadrzędną, nazwę i właściwość. Na przykład:
SlidesApp.AutofitType.TEXT_AUTOFIT
.
Właściwości
Właściwość | Typ | Opis |
UNSUPPORTED | Enum | Nieobsługiwany typ automatycznego dopasowania. |
NONE | Enum | Dopasowanie automatyczne nie zostało zastosowane. |
TEXT_AUTOFIT | Enum | Zmniejsza tekst w przypadku jego nadmiaru. |
SHAPE_AUTOFIT | Enum | Zmienia rozmiar kształtu, aby dopasować go do tekstu. |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
[null,null,["Ostatnia aktualizacja: 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. |"]]