توضّح هذه الصفحة كيفية إضافة شرائح إلى عرض تقديمي حالي في "العروض التقديمية من Google".
شرائح
كل صفحة فردية من عرض تقديمي في "العروض التقديمية من Google" هي شريحة.
لإضافة شريحة إلى العرض التقديمي، تحتاج إلى معرّف العرض التقديمي. يمكنك العثور على
رقم تعريف العرض التقديمي من خلال فتح العرض التقديمي في "العروض التقديمية من Google" ومحاولة
الاطّلاع على عنوان URL الخاص به:
لإضافة شريحة، استخدِم batchUpdate() مع معرّف العرض التقديمي وأدرِج CreateSlideRequest في نص الطلب. يتم عرض رقم تعريف الشريحة الجديدة في نص الاستجابة.
مثال
يوضّح المثال التالي كيفية إضافة شريحة إلى عرض تقديمي. جميع الحقول
لأجل
CreateSlideRequest
هي اختيارية. ينشئ هذا المثال الشريحة كشريحة ثانية، بتنسيق
TITLE_AND_TWO_COLUMNS ومعرّف كائن صريح.
تحتوي التنسيقات عادةً على أشكال عناصر نائبة يتم نسخها إلى الشريحة عند
إنشائها. تتيح لك سمة CreateSlideRequest تحديد أرقام تعريف العناصر المستخدَمة لهذه العناصر النائبة
المنسوخة من خلال الحقل placeholderIdMappings. يتيح لك ذلك تعديل العناصر النائبة المنسوخة في طلب batchUpdate نفسه، ما يؤدي إلى تحسين الأداء وتوفير الحصة. لمزيد من المعلومات، يُرجى الاطّلاع على
نموذج CreateSlideRequest.
تاريخ التعديل الأخير: 2024-12-21 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-12-21 (حسب التوقيت العالمي المتفَّق عليه)"],[[["This page provides instructions on adding new slides to existing Google Slides presentations."],["You need the presentation ID to add a slide, which can be found in the presentation's URL."],["The `batchUpdate()` method and `CreateSlideRequest` are used to add slides, with the new slide's ID returned in the response."],["Slides can be further customized by adding text, shapes, and filling in placeholders after creation."],["The `placeholderIdMappings` field in `CreateSlideRequest` allows for efficient modification of copied placeholders during the slide creation process."]]],["To add a slide to a Google Slides presentation, use the `batchUpdate()` method with the presentation ID and a `CreateSlideRequest`. The `CreateSlideRequest` allows specifying details like the object ID, insertion index, and layout, such as 'TITLE_AND_TWO_COLUMNS'. Explicit object IDs must be unique; otherwise, let the Slides API generate them. The response returns the new slide's ID. The new slide can be populated with elements, like text or shapes, in subsequent requests.\n"]]