'Declaration Public Property MaxLines As Integer
'Usage Dim instance As GcTextBox Dim value As Integer instance.MaxLines = value value = instance.MaxLines
public int MaxLines {get; set;}
'Declaration Public Property MaxLines As Integer
'Usage Dim instance As GcTextBox Dim value As Integer instance.MaxLines = value value = instance.MaxLines
public int MaxLines {get; set;}
Exception | Description |
---|---|
System.Exception | MaxLines is less than MinLines. |
Getting this property returns the current value of MaxLines. Setting this property causes the text box to resize if the number of visible lines exceeds the limit specified by MaxLines.
This property applies only to visible lines, and does not constrain the actual number of lines. Depending on its configuration, a text box may contain additional non-visible lines that are accessible by scrolling.
If the System.Windows.FrameworkElement.Height property is explicitly set on a GcTextBox, the MaxLines and MinLines property values are ignored.