CommandResult.Child
property · CommandResult · cAlgo.API
DesktopCLICloud
Gets the child control associated with the command result.
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
public ControlBase Child {get;}
commandResult.Child: ControlBase
Returns ControlBase
Examples
var commandResult = new CommandResult(new TextBlock { Text = "Done" });
if (commandResult.Child is TextBlock textBlock)
Print("Result text: {0}", textBlock.Text);
textBlock = TextBlock()
textBlock.Text = "Done"
commandResult = CommandResult(textBlock)
api.Print(f"Result content: {commandResult.Child}")