[]
        
(Showing Draft Content)

GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcTextBox.MaxLines

MaxLines Property

MaxLines

Gets or sets the maximum number of visible lines. This is a dependency property.

Declaration
public int MaxLines { get; set; }
Public Property MaxLines As Integer
Property Value
Type Description
int

The maximum number of visible lines. The default is MaxValue.

Remarks

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.

Exceptions
Type Condition
Exception

MaxLines is less than MinLines.