ComponentOne MultiSelect for WinForms
C1.Win.Input Namespace / C1TextBox Class / MaxLineCount Property

In This Topic
    MaxLineCount Property (C1TextBox)
    In This Topic
    Gets or sets the maximum number of lines.
    Syntax
    'Declaration
     
    
    Public Property MaxLineCount As Integer
    public int MaxLineCount {get; set;}

    Property Value

    An int value that indicates the maximum number of lines.
    The default is zero.
    Remarks

    MaxLineCount limits the acceptable lines of text when the C1.Win.C1Input.C1TextBox.Multiline property is true.

    This property does not work with wrapped lines, so preferable is to use MaxLineCount when System.Windows.Forms.TextBoxBase.WordWrap property is true.

    The default value of this property, zero, means no limit.

    See Also