Skip to content

TextBox.MaxLines

property · TextBox · cAlgo.API

DesktopCLICloud

Gets or sets the maximum number of visible lines.

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 int MaxLines {get; set;}
textBox.MaxLines: int

Returns int

Examples

var logTextBox = new TextBox { AcceptsReturn = true, MaxLines = 4, IsReadOnly = true };
Chart.AddControl(logTextBox);
Print("Maximum lines: {0}", logTextBox.MaxLines);
logTextBox = TextBox()
logTextBox.AcceptsReturn = True
logTextBox.MaxLines = 4
logTextBox.IsReadOnly = True
api.Chart.AddControl(logTextBox)
api.Print(f"Maximum lines: {logTextBox.MaxLines}")