TextBox.IsReadOnly
property · TextBox · cAlgo.API
DesktopCLICloud
Gets or sets a value indicating whether the current text box is read-only.
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 bool IsReadOnly {get; set;}
textBox.IsReadOnly: bool
Returns bool
Examples
var balanceTextBox = new TextBox { Text = Account.Balance.ToString("F2"), IsReadOnly = true };
Chart.AddControl(balanceTextBox);
balanceTextBox = TextBox()
balanceTextBox.Text = f"{api.Account.Balance:.2f}"
balanceTextBox.IsReadOnly = True
api.Chart.AddControl(balanceTextBox)