blockly > الأحداث > CommentDelete > (أداة الإنشاء)
إنشاء مثيل جديد لفئة CommentDelete
Signature:
constructor(opt_comment?: WorkspaceComment);
المعلمات
المعلمة |
النوع |
الوصف |
opt_comment |
WorkspaceComment |
(اختياري) التعليق المحذوف. غير محدّد لحدث فارغ. |
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-08-29 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-08-29 (حسب التوقيت العالمي المتفَّق عليه)"],[[["This constructor creates a new `CommentDelete` event, which is used to record the deletion of a comment in Blockly workspaces."],["The constructor optionally accepts a `WorkspaceComment` object representing the deleted comment, allowing the event to store information about the specific comment that was removed."],["If no `WorkspaceComment` is provided, the event is considered a \"blank event,\" which can be used to signal a general comment deletion without specifying a particular comment instance."]]],["The `CommentDelete` class constructor creates a new instance representing the deletion of a comment. It accepts an optional parameter, `opt_comment`, which is a `WorkspaceComment` object. This parameter represents the specific comment that was deleted, and it's undefined if the event is blank. This allows for tracking the deletion of a specific comment or a general comment deletion event.\n"]]