bool Selectable { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Selectable property of the GraphicsItem class in the Editor namespace indicates whether the graphics item can be selected by the user. This property is a boolean value, where true means the item is selectable, and false means it is not.

Usage

To use the Selectable property, you can get or set its value to determine or change the selectability of a GraphicsItem instance. This is useful when you want to control user interaction with graphical items in an editor environment.

Example

// Example of using the Selectable property

// Create a new GraphicsItem instance
GraphicsItem item = new GraphicsItem();

// Check if the item is selectable
bool isSelectable = item.Selectable;

// Set the item to be selectable
item.Selectable = true;

// Set the item to be non-selectable
item.Selectable = false;