دورة حياة تحديث العرض التقديمي
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
هناك ثلاث مراحل رئيسية في دورة حياة كائن العرض التقديمي: الفتح والتعديل والحفظ.
فتح عرض تقديمي
عند استخدام "خدمة العروض التقديمية"، تكون الخطوة الأولى هي تحميل عرض تقديمي. تتيح لك طرق مثل SlidesApp.openById() وSlidesApp.getActivePresentation() تحميل عرض تقديمي حالي في "العروض التقديمية من Google"، بينما تنشئ الطريقة SlidesApp.create() عرضًا تقديميًا جديدًا. تعرض هذه الطرق عنصر Presentation الذي يمثّل العرض التقديمي الذي تم تحميله.
بعد فتح عرض تقديمي، لن يتلقّى أي تحديثات أخرى من المتعاونين. يتم عادةً فتح العروض التقديمية بأحدث نسخة تم حفظها في Drive. ومع ذلك، إذا كان النص البرمجي مرتبطًا بحاوية عرض تقديمي، سيتم تحميل هذا العرض التقديمي بالإصدار نفسه الذي يتم تحميل محرر "العروض التقديمية من Google" به.
تعديل عرض تقديمي
بعد فتح عرض تقديمي، يمكن لبرنامج نصي قراءته وتعديله. تظهر أي تغييرات يجريها النص البرمجي على العرض التقديمي في عمليات القراءة والتعديل اللاحقة طوال مدة تنفيذ النص البرمجي.
جارٍ حفظ التغييرات
بعد إجراء تغييرات على عرض تقديمي، يتم حفظ التغييرات كلها مرة واحدة عند اكتمال تنفيذ النص البرمجي أو عند استدعاء Presentation.saveAndClose(). بعد حفظ التغييرات، يتم نشرها بشكل غير متزامن إلى محرر المستخدم، كما لو أنّ التغييرات أجراها أحد المتعاونين.
بعد إغلاق عرض تقديمي باستخدام Presentation.saveAndClose()
، يمكن إعادة فتحه لتعديله باستخدام إحدى طرق تحميل العروض التقديمية.
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-08-31 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-08-31 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eThe Slides service allows you to open existing or create new Google Slides presentations for manipulation within Apps Script.\u003c/p\u003e\n"],["\u003cp\u003eScripts can modify presentations, with changes reflected immediately within the script but saved and propagated to the editor upon script completion or explicit save.\u003c/p\u003e\n"],["\u003cp\u003eSaving changes to a presentation is done automatically at the end of script execution or manually using \u003ccode\u003ePresentation.saveAndClose()\u003c/code\u003e, after which the presentation can be reopened.\u003c/p\u003e\n"]]],[],null,["# Life cycle of a presentation update\n\nThere are three main phases in the life cycle of a\n[Presentation](/apps-script/reference/slides/presentation) object: opening,\nediting, and saving.\n\nOpening a presentation\n----------------------\n\nWhen using the Slides Service, the first step is to load a presentation. Methods\nlike [SlidesApp.openById()](/apps-script/reference/slides/slides-app#openbyidid)\nand [SlidesApp.getActivePresentation()](/apps-script/reference/slides/slides-app#getactivepresentation)\nload an existing Slides presentation, while\n[SlidesApp.create()](/apps-script/reference/slides/slides-app#createname)\ncreates a new presentation. These methods return a\n[Presentation](/apps-script/reference/slides/presentation) object that\nrepresents the loaded presentation.\n\nOnce a presentation is open, it does not receive any further updates from\ncollaborators. Presentations are usually opened at their latest version that has\nbeen saved in Drive. However, if a script is container-bound to a presentation,\nthat presentation will be loaded at the same version as the accompanying Slides\neditor.\n\nModifying a presentation\n------------------------\n\nOnce a presentation is open, a script can read and modify it. Any changes that\nthe script makes to the presentation are reflected in subsequent reads and\nmodifications for the duration of the script execution.\n\nSaving changes\n--------------\n\nAfter making changes to a presentation, the changes are saved all at once\nwhen the script execution completes, or when [Presentation.saveAndClose()](/apps-script/reference/slides/presentation#saveandclose) is\ncalled. After changes are saved, they propagate asynchronously to the\nuser's editor, as if the changes were made by a collaborator.\n\nAfter a presentation is closed using `Presentation.saveAndClose()`, it can be\nreopened for editing using one of the presentation loading methods."]]