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.
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.
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 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.