blockly > رویدادها > CommentDelete > (سازنده)
یک نمونه جدید از کلاس CommentDelete
می سازد
امضا:
constructor(opt_comment?: WorkspaceComment);
پارامترها
پارامتر | تایپ کنید | توضیحات |
---|
opt_comment | Comment فضای کاری | (اختیاری) نظر حذف شده. برای یک رویداد خالی تعریف نشده است. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-01-10 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-01-10 بهوقت ساعت هماهنگ جهانی."],[[["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"]]