[]
Gets or sets the maximum number of visible lines. This is a dependency property.
public int MaxLines { get; set; }
Public Property MaxLines As Integer
Type | Description |
---|---|
int | The maximum number of visible lines. The default is MaxValue. |
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 Height property is explicitly set on a GcTextBox, the MaxLines and MinLines property values are ignored.
Type | Condition |
---|---|
Exception |