bool Movable { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Movable property of the GraphicsItem class indicates whether the graphical item can be moved within its parent container or scene. This property is a boolean value, where true means the item is movable, and false means it is not.

Usage

To use the Movable property, simply access it on an instance of GraphicsItem. You can set it to true or false depending on whether you want the item to be movable or not.

Example

// Example of setting the Movable property
GraphicsItem item = new GraphicsItem();

// Make the item movable
item.Movable = true;

// Check if the item is movable
bool isMovable = item.Movable;

// Output: true
// This indicates that the item can be moved within its parent container or scene.