Enum AutofitType
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
الملاءمة التلقائيةالنوع
أنواع الملء التلقائي
لاستدعاء قائمة أرقام صحيحة، عليك استدعاء الصف الرئيسي والاسم والخاصية. مثلاً:
SlidesApp.AutofitType.TEXT_AUTOFIT
أماكن إقامة
الموقع | النوع | الوصف |
UNSUPPORTED | Enum | نوع ملاءمة تلقائية غير متوافق |
NONE | Enum | لم يتم تطبيق ميزة "الملء التلقائي". |
TEXT_AUTOFIT | Enum | تصغير النص عند تجاوز السعة |
SHAPE_AUTOFIT | Enum | تغيير حجم الشكل ليناسب النص |
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\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. |"]]