Skip to content

AspBlock.Child

property · AspBlock · cAlgo.API

DesktopCLICloud

Get / set content of current 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

ControlBase Child {get; set;}
aspBlock.Child: ControlBase

Returns ControlBase

Examples

var block = Asp.SymbolTab.AddBlock("My Block");
block.Child = new TextBlock { Text = "Block content", Margin = 5 };
block = api.Asp.SymbolTab.AddBlock("My Block")
textBlock = TextBlock()
textBlock.Text = "Block content"
textBlock.Margin = Thickness(5)
block.Child = textBlock