AspBlock.IsAttached
property · AspBlock · cAlgo.API
DesktopCLICloud
Get / set block attached / detached state.
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 IsAttached {get; set;}
aspBlock.IsAttached: bool
Returns bool
Examples
var block = Asp.SymbolTab.AddBlock("My Block");
block.IsDetachable = true;
block.IsAttached = false;
Print("Block is attached: {0}", block.IsAttached);
block = api.Asp.SymbolTab.AddBlock("My Block")
block.IsDetachable = True
block.IsAttached = False
api.Print(f"Block is attached: {block.IsAttached}")