bool Deleted { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Deleted property of the Editor.BaseDropObject class indicates whether the drop object has been marked as deleted. This boolean property is used to track the deletion state of the object within the editor environment.

Usage

Use the Deleted property to check if a BaseDropObject has been deleted or to mark it as deleted. This can be useful for managing the lifecycle of objects in the editor, ensuring that deleted objects are not processed further.

Example

// Example of using the Deleted property

Editor.BaseDropObject dropObject = new Editor.BaseDropObject();

// Check if the object is deleted
if (!dropObject.Deleted)
{
    // Perform operations on the object
    // ...

    // Mark the object as deleted
    dropObject.Deleted = true;
}

// Later in the code, check if the object is deleted before processing
if (dropObject.Deleted)
{
    // Skip processing as the object is marked as deleted
}