TextBox.MinLines
property · TextBox · cAlgo.API
DesktopCLICloud
Gets or sets the minimum 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 MinLines {get; set;}
textBox.MinLines: int
Returns int
Examples
var commentTextBox = new TextBox { AcceptsReturn = true, MinLines = 2, MaxLines = 6 };
Chart.AddControl(commentTextBox);
Print("Minimum lines: {0}", commentTextBox.MinLines);
commentTextBox = TextBox()
commentTextBox.AcceptsReturn = True
commentTextBox.MinLines = 2
commentTextBox.MaxLines = 6
api.Chart.AddControl(commentTextBox)
api.Print(f"Minimum lines: {commentTextBox.MinLines}")