Skip to content

TextBox constructor

constructor · TextBox · cAlgo.API

DesktopCLICloud

Initializes a new instance of the TextBox class.

Environment behaviour

CLI — not supported. Accepted without error but never displayed, so control events such as Click are never raised.

Cloud — not supported. Accepted without error but never displayed, so control events such as Click are never raised.

Definition

public TextBox()
TextBox()

Examples

var volumeTextBox = new TextBox { Text = "0.01", Width = 80 };
volumeTextBox.TextChanged += args => Print("Volume input: {0}", args.TextBox.Text);
Chart.AddControl(volumeTextBox);
volumeTextBox = TextBox()
volumeTextBox.Text = "0.01"
volumeTextBox.Width = 80
volumeTextBox.TextChanged += lambda args: api.Print(f"Volume input: {args.TextBox.Text}")
api.Chart.AddControl(volumeTextBox)