Spread WPF 18
GrapeCity.Wpf.SpreadSheet.CellType.Editors Namespace / GcTextBox Class / MinLines Property


In This Topic
    MinLines Property
    In This Topic
    Gets or sets the minimum number of visible lines. This is a dependency property.
    Syntax
    'Declaration
     
    Public Property MinLines As Integer
    'Usage
     
    Dim instance As GcTextBox
    Dim value As Integer
     
    instance.MinLines = value
     
    value = instance.MinLines
    public int MinLines {get; set;}

    Property Value

    The minimum number of visible lines. The default is 1.
    Exceptions
    ExceptionDescription
    The assigned value is less than or equals to zero.
    Remarks

    Getting this property returns the current value of MinLines. Setting this property causes the text box to resize if the number of visible lines is less than value specified by MinLines.

    If the System.Windows.FrameworkElement.Height property is explicitly set on a GcTextBox, the MaxLines and MinLines property values are ignored.

    See Also