AspBlock.IsDetachable
property · AspBlock · cAlgo.API
DesktopCLICloud
Get / set block detachability, if True user can attach or detach the block.
Environment behaviour
CLI — not supported. Available to plugins only, and plugins cannot run in the CLI.
Cloud — not supported. Available to plugins only, and plugins cannot run in the cloud.
Definition
bool IsDetachable {get; set;}
aspBlock.IsDetachable: bool
Returns bool
Examples
var block = Asp.SymbolTab.AddBlock("My Block");
block.IsDetachable = false;
Print("Block can be detached: {0}", block.IsDetachable);
block = api.Asp.SymbolTab.AddBlock("My Block")
block.IsDetachable = False
api.Print(f"Block can be detached: {block.IsDetachable}")